Class: Kreuzberg::ChunkingDecisionNoChunking
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::ChunkingDecisionNoChunking
- Extended by:
- T::Sig
- Includes:
- ChunkingDecision
- Defined in:
- lib/kreuzberg/native.rb
Overview
Process without chunking (small file, text layer detected, etc.)
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#reason ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4053 4054 4055 |
# File 'lib/kreuzberg/native.rb', line 4053 def reason @reason end |
Class Method Details
.from_hash(hash) ⇒ Object
4069 4070 4071 |
# File 'lib/kreuzberg/native.rb', line 4069 def self.from_hash(hash) new(reason: hash[:reason] || hash["reason"]) end |
Instance Method Details
#chunk? ⇒ Boolean
4063 |
# File 'lib/kreuzberg/native.rb', line 4063 def chunk? = false |
#no_chunking? ⇒ Boolean
4061 |
# File 'lib/kreuzberg/native.rb', line 4061 def no_chunking? = true |
#use_overrides? ⇒ Boolean
4065 4066 4067 |
# File 'lib/kreuzberg/native.rb', line 4065 def use_overrides? = false # @param hash [Hash] deserialized from the native extension # @return [self] |