Class: Kreuzberg::ChunkingReasonLargeFile
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::ChunkingReasonLargeFile
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/kreuzberg/native.rb
Overview
File exceeds size threshold.
Instance Attribute Summary collapse
-
#size_bytes ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#threshold_bytes ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #large_and_many_pages? ⇒ Boolean
- #large_file? ⇒ Boolean
- #many_pages? ⇒ Boolean
- #ocr_required? ⇒ Boolean
Instance Attribute Details
#size_bytes ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4333 4334 4335 |
# File 'lib/kreuzberg/native.rb', line 4333 def size_bytes @size_bytes end |
#threshold_bytes ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4333 4334 4335 |
# File 'lib/kreuzberg/native.rb', line 4333 def threshold_bytes @threshold_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
4354 4355 4356 |
# File 'lib/kreuzberg/native.rb', line 4354 def self.from_hash(hash) new(size_bytes: hash[:size_bytes] || hash["size_bytes"], threshold_bytes: hash[:threshold_bytes] || hash["threshold_bytes"]) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
4350 4351 4352 |
# File 'lib/kreuzberg/native.rb', line 4350 def large_and_many_pages? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
4344 |
# File 'lib/kreuzberg/native.rb', line 4344 def large_file? = true |
#many_pages? ⇒ Boolean
4346 |
# File 'lib/kreuzberg/native.rb', line 4346 def many_pages? = false |
#ocr_required? ⇒ Boolean
4348 |
# File 'lib/kreuzberg/native.rb', line 4348 def ocr_required? = false |