Class: OmniAI::Mistral::OCR::Response
- Inherits:
-
Object
- Object
- OmniAI::Mistral::OCR::Response
- Defined in:
- lib/omniai/mistral/ocr/response.rb
Overview
The response from the OCR API.
Instance Attribute Summary collapse
-
#model ⇒ Object
!@attribute [rw] model @return [Array<Model>].
-
#pages ⇒ Object
!@attribute [rw] pages @return [Array<Page>].
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model:, pages:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(model:, pages:) ⇒ Response
Returns a new instance of Response.
18 19 20 21 |
# File 'lib/omniai/mistral/ocr/response.rb', line 18 def initialize(model:, pages:) @model = model @pages = pages end |
Instance Attribute Details
#model ⇒ Object
!@attribute [rw] model
@return [Array<Model>]
10 11 12 |
# File 'lib/omniai/mistral/ocr/response.rb', line 10 def model @model end |
#pages ⇒ Object
!@attribute [rw] pages
@return [Array<Page>]
14 15 16 |
# File 'lib/omniai/mistral/ocr/response.rb', line 14 def pages @pages end |