Class: Pangea::Magma::Chain::ChainEdge

Inherits:
Struct
  • Object
show all
Defined in:
lib/pangea/magma/chain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



27
28
29
# File 'lib/pangea/magma/chain.rb', line 27

def from
  @from
end

#from_outputObject

Returns the value of attribute from_output

Returns:

  • (Object)

    the current value of from_output



27
28
29
# File 'lib/pangea/magma/chain.rb', line 27

def from_output
  @from_output
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



27
28
29
# File 'lib/pangea/magma/chain.rb', line 27

def to
  @to
end

#to_inputObject

Returns the value of attribute to_input

Returns:

  • (Object)

    the current value of to_input



27
28
29
# File 'lib/pangea/magma/chain.rb', line 27

def to_input
  @to_input
end

Instance Method Details

#to_hObject



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