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