Class: LiterLlm::OcrDocumentBase64
- Inherits:
-
Data
- Object
- Data
- LiterLlm::OcrDocumentBase64
- Extended by:
- T::Sig
- Includes:
- OcrDocument
- Defined in:
- lib/liter_llm/native.rb
Overview
Inline base64-encoded document data.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#media_type ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
600 601 602 |
# File 'lib/liter_llm/native.rb', line 600 def data @data end |
#media_type ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
600 601 602 |
# File 'lib/liter_llm/native.rb', line 600 def media_type @media_type end |
Class Method Details
.from_hash(hash) ⇒ Object
617 618 619 |
# File 'lib/liter_llm/native.rb', line 617 def self.from_hash(hash) new(data: hash[:data] || hash["data"], media_type: hash[:media_type] || hash["media_type"]) end |
Instance Method Details
#base64? ⇒ Boolean
613 614 615 |
# File 'lib/liter_llm/native.rb', line 613 def base64? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#url? ⇒ Boolean
611 |
# File 'lib/liter_llm/native.rb', line 611 def url? = false |