Class: Xberg::ChunkingReasonManyPages
- Inherits:
-
Data
- Object
- Data
- Xberg::ChunkingReasonManyPages
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/xberg/native.rb
Overview
Document has many pages.
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
- #large_and_many_pages? ⇒ Boolean
- #large_file? ⇒ Boolean
- #many_pages? ⇒ Boolean
- #ocr_required? ⇒ Boolean
Instance Attribute Details
#page_count ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4396 4397 4398 |
# File 'lib/xberg/native.rb', line 4396 def page_count @page_count end |
#threshold ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4396 4397 4398 |
# File 'lib/xberg/native.rb', line 4396 def threshold @threshold end |
Class Method Details
.from_hash(hash) ⇒ Object
4419 4420 4421 |
# File 'lib/xberg/native.rb', line 4419 def self.from_hash(hash) new(page_count: hash[:page_count] || hash["page_count"], threshold: hash[:threshold] || hash["threshold"]) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
4415 4416 4417 |
# File 'lib/xberg/native.rb', line 4415 def large_and_many_pages? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
4409 |
# File 'lib/xberg/native.rb', line 4409 def large_file? = false |
#many_pages? ⇒ Boolean
4411 |
# File 'lib/xberg/native.rb', line 4411 def many_pages? = true |
#ocr_required? ⇒ Boolean
4413 |
# File 'lib/xberg/native.rb', line 4413 def ocr_required? = false |