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
419 420 421 |
# File 'lib/liter_llm/native.rb', line 419 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
433 434 435 |
# File 'lib/liter_llm/native.rb', line 433 def self.from_hash(hash) new(url: hash[:url] || hash["url"]) end |
Instance Method Details
#base64? ⇒ Boolean
429 430 431 |
# File 'lib/liter_llm/native.rb', line 429 def base64? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#url? ⇒ Boolean
427 |
# File 'lib/liter_llm/native.rb', line 427 def url? = true |