Class: Xberg::NoChunkingReasonFewPages
- Inherits:
-
Data
- Object
- Data
- Xberg::NoChunkingReasonFewPages
- Extended by:
- T::Sig
- Includes:
- NoChunkingReason
- Defined in:
- lib/xberg/native.rb
Overview
Document has fewer pages than threshold.
Instance Attribute Summary collapse
-
#page_count ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#threshold ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #chunking_disabled? ⇒ Boolean
- #fast_text_extraction? ⇒ Boolean
- #few_pages? ⇒ Boolean
- #format_not_chunkable? ⇒ Boolean
- #small_file? ⇒ Boolean
- #text_layer_detected? ⇒ Boolean
Instance Attribute Details
#page_count ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4200 4201 4202 |
# File 'lib/xberg/native.rb', line 4200 def page_count @page_count end |
#threshold ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4200 4201 4202 |
# File 'lib/xberg/native.rb', line 4200 def threshold @threshold end |
Class Method Details
.from_hash(hash) ⇒ Object
4227 4228 4229 |
# File 'lib/xberg/native.rb', line 4227 def self.from_hash(hash) new(page_count: hash[:page_count] || hash["page_count"], threshold: hash[:threshold] || hash["threshold"]) end |
Instance Method Details
#chunking_disabled? ⇒ Boolean
4221 |
# File 'lib/xberg/native.rb', line 4221 def chunking_disabled? = false |
#fast_text_extraction? ⇒ Boolean
4223 4224 4225 |
# File 'lib/xberg/native.rb', line 4223 def fast_text_extraction? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#few_pages? ⇒ Boolean
4215 |
# File 'lib/xberg/native.rb', line 4215 def few_pages? = true |
#format_not_chunkable? ⇒ Boolean
4219 |
# File 'lib/xberg/native.rb', line 4219 def format_not_chunkable? = false |
#small_file? ⇒ Boolean
4213 |
# File 'lib/xberg/native.rb', line 4213 def small_file? = false |
#text_layer_detected? ⇒ Boolean
4217 |
# File 'lib/xberg/native.rb', line 4217 def text_layer_detected? = false |