Class: AmazonTRP::Row

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRow

Returns a new instance of Row.



364
365
366
# File 'lib/amazon-textract-parser-ruby.rb', line 364

def initialize
  @cells = []
end

Instance Attribute Details

#cellsObject (readonly)

Returns the value of attribute cells.



362
363
364
# File 'lib/amazon-textract-parser-ruby.rb', line 362

def cells
  @cells
end

Instance Method Details

#to_sObject



368
369
370
371
372
373
374
# File 'lib/amazon-textract-parser-ruby.rb', line 368

def to_s
  s = ""
  @cells.each do |cell|
    s = s + "[#{cell}]"
  end
  return s
end