Class: AmazonTRP::Point
- Inherits:
-
Object
- Object
- AmazonTRP::Point
- Defined in:
- lib/amazon-textract-parser-ruby.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Point
constructor
A new instance of Point.
- #to_s ⇒ Object
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
#x ⇒ Object (readonly)
Returns the value of attribute x.
39 40 41 |
# File 'lib/amazon-textract-parser-ruby.rb', line 39 def x @x end |
#y ⇒ Object (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_s ⇒ Object
47 48 49 |
# File 'lib/amazon-textract-parser-ruby.rb', line 47 def to_s "(#{@x}, #{@y})" end |