Class: DurableFlow::DefinitionNode
- Inherits:
-
Data
- Object
- Data
- DurableFlow::DefinitionNode
- Defined in:
- lib/durable_flow/definition_graph.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source_file ⇒ Object
readonly
Returns the value of attribute source_file.
-
#source_line ⇒ Object
readonly
Returns the value of attribute source_line.
-
#target_workflow_class ⇒ Object
readonly
Returns the value of attribute target_workflow_class.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#workflow_class ⇒ Object
readonly
Returns the value of attribute workflow_class.
Instance Method Summary collapse
- #to_h ⇒ Object (also: #as_json)
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def @metadata end |
#name ⇒ Object (readonly)
Returns the value of attribute name
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def name @name end |
#source_file ⇒ Object (readonly)
Returns the value of attribute source_file
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def source_file @source_file end |
#source_line ⇒ Object (readonly)
Returns the value of attribute source_line
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def source_line @source_line end |
#target_workflow_class ⇒ Object (readonly)
Returns the value of attribute target_workflow_class
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def target_workflow_class @target_workflow_class end |
#type ⇒ Object (readonly)
Returns the value of attribute type
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def type @type end |
#workflow_class ⇒ Object (readonly)
Returns the value of attribute workflow_class
4 5 6 |
# File 'lib/durable_flow/definition_graph.rb', line 4 def workflow_class @workflow_class end |
Instance Method Details
#to_h ⇒ Object Also known as: as_json
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/durable_flow/definition_graph.rb', line 14 def to_h { id: id, type: type, name: name, workflow_class: workflow_class, target_workflow_class: target_workflow_class, source_file: source_file, source_line: source_line, metadata: || {} }.compact end |