Class: Retab::WorkflowEdgeDoc
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowEdgeDoc
- Defined in:
- lib/retab/workflow_edges/workflow_edge_doc.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, workflow_id: :workflow_id, source_block: :source_block, target_block: :target_block, source_handle: :source_handle, target_handle: :target_handle, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#source_block ⇒ Object
Returns the value of attribute source_block.
-
#source_handle ⇒ Object
Returns the value of attribute source_handle.
-
#target_block ⇒ Object
Returns the value of attribute target_block.
-
#target_handle ⇒ Object
Returns the value of attribute target_handle.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowEdgeDoc
constructor
A new instance of WorkflowEdgeDoc.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowEdgeDoc
Returns a new instance of WorkflowEdgeDoc.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 27 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @workflow_id = hash[:workflow_id] @source_block = hash[:source_block] @target_block = hash[:target_block] @source_handle = hash[:source_handle] @target_handle = hash[:target_handle] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def id @id end |
#source_block ⇒ Object
Returns the value of attribute source_block.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def source_block @source_block end |
#source_handle ⇒ Object
Returns the value of attribute source_handle.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def source_handle @source_handle end |
#target_block ⇒ Object
Returns the value of attribute target_block.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def target_block @target_block end |
#target_handle ⇒ Object
Returns the value of attribute target_handle.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def target_handle @target_handle end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def updated_at @updated_at end |
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
18 19 20 |
# File 'lib/retab/workflow_edges/workflow_edge_doc.rb', line 18 def workflow_id @workflow_id end |