Class: Retab::WorkflowEdgeVersion
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowEdgeVersion
- Defined in:
- lib/retab/workflow_edges/workflow_edge_version.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, edge_id: :edge_id, workflow_id: :workflow_id, workflow_version_id: :workflow_version_id, source: :source, source_handle: :source_handle, target: :target, target_handle: :target_handle, animated: :animated, created_at: :created_at }.freeze
Instance Attribute Summary collapse
-
#animated ⇒ Object
Returns the value of attribute animated.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#edge_id ⇒ Object
Returns the value of attribute edge_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#source_handle ⇒ Object
Returns the value of attribute source_handle.
-
#target ⇒ Object
Returns the value of attribute target.
-
#target_handle ⇒ Object
Returns the value of attribute target_handle.
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
-
#workflow_version_id ⇒ Object
Returns the value of attribute workflow_version_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowEdgeVersion
constructor
A new instance of WorkflowEdgeVersion.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowEdgeVersion
Returns a new instance of WorkflowEdgeVersion.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 34 def initialize(json) super() hash = self.class.normalize(json) @id = hash[:id] @edge_id = hash[:edge_id] @workflow_id = hash[:workflow_id] @workflow_version_id = hash[:workflow_version_id] @source = hash[:source] @source_handle = hash[:source_handle] @target = hash[:target] @target_handle = hash[:target_handle] @animated = hash[:animated].nil? ? true : hash[:animated] @created_at = hash[:created_at] end |
Instance Attribute Details
#animated ⇒ Object
Returns the value of attribute animated.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def animated @animated end |
#created_at ⇒ Object
Returns the value of attribute created_at.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def created_at @created_at end |
#edge_id ⇒ Object
Returns the value of attribute edge_id.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def edge_id @edge_id end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def id @id end |
#source ⇒ Object
Returns the value of attribute source.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def source @source end |
#source_handle ⇒ Object
Returns the value of attribute source_handle.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def source_handle @source_handle end |
#target ⇒ Object
Returns the value of attribute target.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def target @target end |
#target_handle ⇒ Object
Returns the value of attribute target_handle.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def target_handle @target_handle end |
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def workflow_id @workflow_id end |
#workflow_version_id ⇒ Object
Returns the value of attribute workflow_version_id.
21 22 23 |
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21 def workflow_version_id @workflow_version_id end |