Class: Synapse::Subnet
- Inherits:
-
Object
- Object
- Synapse::Subnet
- Defined in:
- lib/synapse_api/subnet.rb
Instance Attribute Summary collapse
-
#node_id ⇒ Object
Returns the value of attribute node_id.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#subnet_id ⇒ Object
Returns the value of attribute subnet_id.
Instance Method Summary collapse
-
#initialize(subnet_id:, payload:, node_id:) ⇒ Subnet
constructor
A new instance of Subnet.
Constructor Details
#initialize(subnet_id:, payload:, node_id:) ⇒ Subnet
Returns a new instance of Subnet.
7 8 9 10 11 |
# File 'lib/synapse_api/subnet.rb', line 7 def initialize(subnet_id:, payload:, node_id:) @subnet_id = subnet_id @payload = payload @node_id = node_id end |
Instance Attribute Details
#node_id ⇒ Object
Returns the value of attribute node_id.
5 6 7 |
# File 'lib/synapse_api/subnet.rb', line 5 def node_id @node_id end |
#payload ⇒ Object
Returns the value of attribute payload.
5 6 7 |
# File 'lib/synapse_api/subnet.rb', line 5 def payload @payload end |
#subnet_id ⇒ Object
Returns the value of attribute subnet_id.
5 6 7 |
# File 'lib/synapse_api/subnet.rb', line 5 def subnet_id @subnet_id end |