Class: Pangea::Magma::Chain::ChainEdge
- Defined in:
- lib/pangea/magma/chain.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#from_output ⇒ Object
Returns the value of attribute from_output.
-
#to ⇒ Object
Returns the value of attribute to.
-
#to_input ⇒ Object
Returns the value of attribute to_input.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
27 28 29 |
# File 'lib/pangea/magma/chain.rb', line 27 def from @from end |
#from_output ⇒ Object
Returns the value of attribute from_output
27 28 29 |
# File 'lib/pangea/magma/chain.rb', line 27 def from_output @from_output end |
#to ⇒ Object
Returns the value of attribute to
27 28 29 |
# File 'lib/pangea/magma/chain.rb', line 27 def to @to end |
#to_input ⇒ Object
Returns the value of attribute to_input
27 28 29 |
# File 'lib/pangea/magma/chain.rb', line 27 def to_input @to_input end |
Instance Method Details
#to_h ⇒ Object
29 30 31 32 |
# File 'lib/pangea/magma/chain.rb', line 29 def to_h { from: from.to_s, from_output: from_output.to_s, to: to.to_s, to_input: to_input.to_s } end |