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
633 634 635 |
# File 'lib/liter_llm/native.rb', line 633 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
647 648 649 |
# File 'lib/liter_llm/native.rb', line 647 def self.from_hash(hash) new(url: hash[:url] || hash["url"]) end |
Instance Method Details
#base64? ⇒ Boolean
643 644 645 |
# File 'lib/liter_llm/native.rb', line 643 def base64? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#url? ⇒ Boolean
641 |
# File 'lib/liter_llm/native.rb', line 641 def url? = true |