Class: Retab::WorkflowBlockPosition
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowBlockPosition
- Defined in:
- lib/retab/workflows/workflow_block_position.rb
Constant Summary collapse
- HASH_ATTRS =
{ x: :x, y: :y }.freeze
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowBlockPosition
constructor
A new instance of WorkflowBlockPosition.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowBlockPosition
Returns a new instance of WorkflowBlockPosition.
17 18 19 20 21 |
# File 'lib/retab/workflows/workflow_block_position.rb', line 17 def initialize(json) hash = self.class.normalize(json) @x = hash[:x] @y = hash[:y] end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
13 14 15 |
# File 'lib/retab/workflows/workflow_block_position.rb', line 13 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
13 14 15 |
# File 'lib/retab/workflows/workflow_block_position.rb', line 13 def y @y end |