Class: Xberg::NoChunkingReasonFewPages

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

Overview

Document has fewer pages than threshold.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#page_countObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4525
4526
4527
# File 'lib/xberg/native.rb', line 4525

def page_count
  @page_count
end

#thresholdObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4525
4526
4527
# File 'lib/xberg/native.rb', line 4525

def threshold
  @threshold
end

Class Method Details

.from_hash(hash) ⇒ Object



4552
4553
4554
# File 'lib/xberg/native.rb', line 4552

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

Returns:

  • (Boolean)


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

def chunking_disabled? = false

#fast_text_extraction?Boolean

Returns:

  • (Boolean)


4548
4549
4550
# File 'lib/xberg/native.rb', line 4548

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

#few_pages?Boolean

Returns:

  • (Boolean)


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

def few_pages? = true

#format_not_chunkable?Boolean

Returns:

  • (Boolean)


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

def format_not_chunkable? = false

#small_file?Boolean

Returns:

  • (Boolean)


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

def small_file? = false

#text_layer_detected?Boolean

Returns:

  • (Boolean)


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

def text_layer_detected? = false