Class: Retab::UpdateWorkflowBlockRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::UpdateWorkflowBlockRequest
- 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
-
#config ⇒ Object
Returns the value of attribute config.
-
#config_mode ⇒ Object
Returns the value of attribute config_mode.
-
#height ⇒ Object
Returns the value of attribute height.
-
#label ⇒ Object
Returns the value of attribute label.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#position_x ⇒ Object
Returns the value of attribute position_x.
-
#position_y ⇒ Object
Returns the value of attribute position_y.
-
#width ⇒ Object
Returns the value of attribute width.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateWorkflowBlockRequest
constructor
A new instance of UpdateWorkflowBlockRequest.
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
#config ⇒ Object
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_mode ⇒ Object
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 |
#height ⇒ Object
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 |
#label ⇒ Object
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_id ⇒ Object
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_x ⇒ Object
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_y ⇒ Object
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 |
#width ⇒ Object
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 |