Class: Retab::WorkflowConfigEdge
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowConfigEdge
- Defined in:
- lib/retab/workflows/workflow_config_edge.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, source: :source, target: :target, source_handle: :source_handle, target_handle: :target_handle, animated: :animated }.freeze
Instance Attribute Summary collapse
-
#animated ⇒ Object
Returns the value of attribute animated.
-
#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.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowConfigEdge
constructor
A new instance of WorkflowConfigEdge.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowConfigEdge
Returns a new instance of WorkflowConfigEdge.
25 26 27 28 29 30 31 32 33 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 25 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @source = hash[:source] @target = hash[:target] @source_handle = hash[:source_handle] @target_handle = hash[:target_handle] @animated = hash[:animated] end |
Instance Attribute Details
#animated ⇒ Object
Returns the value of attribute animated.
17 18 19 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17 def animated @animated end |
#id ⇒ Object
Returns the value of attribute id.
17 18 19 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17 def id @id end |
#source ⇒ Object
Returns the value of attribute source.
17 18 19 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17 def source @source end |
#source_handle ⇒ Object
Returns the value of attribute source_handle.
17 18 19 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17 def source_handle @source_handle end |
#target ⇒ Object
Returns the value of attribute target.
17 18 19 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17 def target @target end |
#target_handle ⇒ Object
Returns the value of attribute target_handle.
17 18 19 |
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17 def target_handle @target_handle end |