Class: AmazonTRP::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon-textract-parser-ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



42
43
44
45
# File 'lib/amazon-textract-parser-ruby.rb', line 42

def initialize(x, y)
  @x = x
  @y = y
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



39
40
41
# File 'lib/amazon-textract-parser-ruby.rb', line 39

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



40
41
42
# File 'lib/amazon-textract-parser-ruby.rb', line 40

def y
  @y
end

Instance Method Details

#to_sObject



47
48
49
# File 'lib/amazon-textract-parser-ruby.rb', line 47

def to_s
  "(#{@x}, #{@y})"
end