Class: Kreuzberg::Result::Table
- Inherits:
-
Struct
- Object
- Struct
- Kreuzberg::Result::Table
- Defined in:
- lib/kreuzberg/result.rb
Instance Attribute Summary collapse
-
#cells ⇒ Array<Array<String>>
readonly
Table cells (2D array).
-
#markdown ⇒ String
readonly
Markdown representation.
-
#page_number ⇒ Integer
readonly
Page number where table was found.
Instance Method Summary collapse
Instance Attribute Details
#cells ⇒ Array<Array<String>> (readonly)
Returns Table cells (2D array).
25 26 27 28 29 |
# File 'lib/kreuzberg/result.rb', line 25 Table = Struct.new(:cells, :markdown, :page_number, keyword_init: true) do def to_h { cells: cells, markdown: markdown, page_number: page_number } end end |
#markdown ⇒ String (readonly)
Returns Markdown representation.
25 26 27 28 29 |
# File 'lib/kreuzberg/result.rb', line 25 Table = Struct.new(:cells, :markdown, :page_number, keyword_init: true) do def to_h { cells: cells, markdown: markdown, page_number: page_number } end end |
#page_number ⇒ Integer (readonly)
Returns Page number where table was found.
25 26 27 28 29 |
# File 'lib/kreuzberg/result.rb', line 25 Table = Struct.new(:cells, :markdown, :page_number, keyword_init: true) do def to_h { cells: cells, markdown: markdown, page_number: page_number } end end |
Instance Method Details
#to_h ⇒ Object
26 27 28 |
# File 'lib/kreuzberg/result.rb', line 26 def to_h { cells: cells, markdown: markdown, page_number: page_number } end |