Class: DurableFlow::DefinitionEdge
- Inherits:
-
Data
- Object
- Data
- DurableFlow::DefinitionEdge
- Defined in:
- lib/durable_flow/definition_graph.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #to_h ⇒ Object (also: #as_json)
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition
30 31 32 |
# File 'lib/durable_flow/definition_graph.rb', line 30 def condition @condition end |
#from ⇒ Object (readonly)
Returns the value of attribute from
30 31 32 |
# File 'lib/durable_flow/definition_graph.rb', line 30 def from @from end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
30 31 32 |
# File 'lib/durable_flow/definition_graph.rb', line 30 def @metadata end |
#to ⇒ Object (readonly)
Returns the value of attribute to
30 31 32 |
# File 'lib/durable_flow/definition_graph.rb', line 30 def to @to end |
#type ⇒ Object (readonly)
Returns the value of attribute type
30 31 32 |
# File 'lib/durable_flow/definition_graph.rb', line 30 def type @type end |
Instance Method Details
#to_h ⇒ Object 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 |