Class: RubyLLM::OCR::Page

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_llm/ocr.rb

Overview

One page of an OCR result: the zero-based page index, the extracted markdown, and the images and tables the provider reports for the page, or nil when it reports none. raw holds the provider's unmodified page hash, including any fields beyond these.

Instance Attribute Summary collapse

Instance Attribute Details

#imagesObject

Returns the value of attribute images

Returns:

  • (Object)

    the current value of images



20
21
22
# File 'lib/ruby_llm/ocr.rb', line 20

def images
  @images
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



20
21
22
# File 'lib/ruby_llm/ocr.rb', line 20

def index
  @index
end

#markdownObject

Returns the value of attribute markdown

Returns:

  • (Object)

    the current value of markdown



20
21
22
# File 'lib/ruby_llm/ocr.rb', line 20

def markdown
  @markdown
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



20
21
22
# File 'lib/ruby_llm/ocr.rb', line 20

def raw
  @raw
end

#tablesObject

Returns the value of attribute tables

Returns:

  • (Object)

    the current value of tables



20
21
22
# File 'lib/ruby_llm/ocr.rb', line 20

def tables
  @tables
end