Class: Retab::WorkflowEdgeVersion

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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#animatedObject

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_atObject

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_idObject

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

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/retab/workflow_edges/workflow_edge_version.rb', line 21

def id
  @id
end

#sourceObject

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_handleObject

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

#targetObject

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_handleObject

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_idObject

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_idObject

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