Class: Retab::UpdateWorkflowBlockRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_blocks/update_workflow_block_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  label: :label,
  position_x: :position_x,
  position_y: :position_y,
  width: :width,
  height: :height,
  config: :config,
  parent_id: :parent_id,
  config_mode: :config_mode
}.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) ⇒ UpdateWorkflowBlockRequest

Returns a new instance of UpdateWorkflowBlockRequest.



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 29

def initialize(json)
  hash = self.class.normalize(json)
  @label = hash[:label]
  @position_x = hash[:position_x]
  @position_y = hash[:position_y]
  @width = hash[:width]
  @height = hash[:height]
  @config = hash[:config] || {}
  @parent_id = hash[:parent_id]
  @config_mode = hash[:config_mode]
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def config
  @config
end

#config_modeObject

Returns the value of attribute config_mode.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def config_mode
  @config_mode
end

#heightObject

Returns the value of attribute height.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def height
  @height
end

#labelObject

Returns the value of attribute label.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def label
  @label
end

#parent_idObject

Returns the value of attribute parent_id.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def parent_id
  @parent_id
end

#position_xObject

Returns the value of attribute position_x.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def position_x
  @position_x
end

#position_yObject

Returns the value of attribute position_y.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def position_y
  @position_y
end

#widthObject

Returns the value of attribute width.



19
20
21
# File 'lib/retab/workflow_blocks/update_workflow_block_request.rb', line 19

def width
  @width
end