Class: Xberg::ChunkingReasonManyPages

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
ChunkingReason
Defined in:
lib/xberg/native.rb

Overview

Document has many pages.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#page_countObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4162
4163
4164
# File 'lib/xberg/native.rb', line 4162

def page_count
  @page_count
end

#thresholdObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4162
4163
4164
# File 'lib/xberg/native.rb', line 4162

def threshold
  @threshold
end

Class Method Details

.from_hash(hash) ⇒ Object



4183
4184
4185
# File 'lib/xberg/native.rb', line 4183

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

Returns:

  • (Boolean)


4179
4180
4181
# File 'lib/xberg/native.rb', line 4179

def large_and_many_pages? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#large_file?Boolean

Returns:

  • (Boolean)


4173
# File 'lib/xberg/native.rb', line 4173

def large_file? = false

#many_pages?Boolean

Returns:

  • (Boolean)


4175
# File 'lib/xberg/native.rb', line 4175

def many_pages? = true

#ocr_required?Boolean

Returns:

  • (Boolean)


4177
# File 'lib/xberg/native.rb', line 4177

def ocr_required? = false