Class: Retab::WorkflowBlockPosition

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflows/workflow_block_position.rb

Constant Summary collapse

HASH_ATTRS =
{
  x: :x,
  y: :y
}.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) ⇒ 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

#xObject

Returns the value of attribute x.



13
14
15
# File 'lib/retab/workflows/workflow_block_position.rb', line 13

def x
  @x
end

#yObject

Returns the value of attribute y.



13
14
15
# File 'lib/retab/workflows/workflow_block_position.rb', line 13

def y
  @y
end