Class: Retab::WorkflowEdgeDoc

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

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) ⇒ 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

#idObject

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_blockObject

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_handleObject

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_blockObject

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_handleObject

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_atObject

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_idObject

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