Class: LiterLlm::OcrDocumentUrl
- Inherits:
-
Data
- Object
- Data
- LiterLlm::OcrDocumentUrl
- Extended by:
- T::Sig
- Includes:
- OcrDocument
- Defined in:
- lib/liter_llm/native.rb
Overview
A publicly accessible document URL.
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
581 582 583 |
# File 'lib/liter_llm/native.rb', line 581 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
595 596 597 |
# File 'lib/liter_llm/native.rb', line 595 def self.from_hash(hash) new(url: hash[:url] || hash["url"]) end |
Instance Method Details
#base64? ⇒ Boolean
591 592 593 |
# File 'lib/liter_llm/native.rb', line 591 def base64? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#url? ⇒ Boolean
589 |
# File 'lib/liter_llm/native.rb', line 589 def url? = true |