Class: Retab::WorkflowEdgeCreateRequest

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#idObject

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_blockObject

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_handleObject

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_blockObject

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_handleObject

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_idObject

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