Class: Retab::WorkflowConfigEdge

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

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

#animatedObject

Returns the value of attribute animated.



17
18
19
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17

def animated
  @animated
end

#idObject

Returns the value of attribute id.



17
18
19
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17

def id
  @id
end

#sourceObject

Returns the value of attribute source.



17
18
19
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17

def source
  @source
end

#source_handleObject

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

#targetObject

Returns the value of attribute target.



17
18
19
# File 'lib/retab/workflows/workflow_config_edge.rb', line 17

def target
  @target
end

#target_handleObject

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