class AmazonTRP::BoundingBox

Attributes

height[R]
left[R]
top[R]
width[R]

Public Class Methods

new(width, height, left, top) click to toggle source
# File lib/amazon-textract-parser-ruby.rb, line 17
def initialize(width, height, left, top)
  @width = width
  @height = height
  @left = left
  @top = top
end

Public Instance Methods

bottom() click to toggle source
# File lib/amazon-textract-parser-ruby.rb, line 32
def bottom
  @top + @height
end
right() click to toggle source
# File lib/amazon-textract-parser-ruby.rb, line 28
def right
  @left + @width
end
to_s() click to toggle source
# File lib/amazon-textract-parser-ruby.rb, line 24
def to_s
  "width: #{@width}, height: #{@height}, left: #{@left}, top: #{@top}"
end