class AmazonTRP::Word

Attributes

block[R]
confidence[R]
geometry[R]
id[R]
text[R]

Public Class Methods

new(block, blockMap) click to toggle source
# File lib/amazon-textract-parser-ruby.rb, line 77
def initialize(block, blockMap)
  @block = block
  @confidence = block[:confidence]
  @geometry = Geometry.new(block[:geometry])
  @id = block[:id]
  @text = block[:text] || ""
end

Public Instance Methods

to_s() click to toggle source
# File lib/amazon-textract-parser-ruby.rb, line 85
def to_s
  @text
end