Class: DurableFlow::DefinitionEdge

Inherits:
Data
  • Object
show all
Defined in:
lib/durable_flow/definition_graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



30
31
32
# File 'lib/durable_flow/definition_graph.rb', line 30

def condition
  @condition
end

#fromObject (readonly)

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



30
31
32
# File 'lib/durable_flow/definition_graph.rb', line 30

def from
  @from
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



30
31
32
# File 'lib/durable_flow/definition_graph.rb', line 30

def 
  @metadata
end

#toObject (readonly)

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



30
31
32
# File 'lib/durable_flow/definition_graph.rb', line 30

def to
  @to
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



30
31
32
# File 'lib/durable_flow/definition_graph.rb', line 30

def type
  @type
end

Instance Method Details

#to_hObject Also known as: as_json



31
32
33
34
35
36
37
38
39
# File 'lib/durable_flow/definition_graph.rb', line 31

def to_h
  {
    from: from,
    to: to,
    type: type,
    condition: condition,
    metadata:  || {}
  }.compact
end