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)

Returns the value of attribute page_count

Returns:

  • (Object)

    the current value of page_count



3063
3064
3065
# File 'lib/xberg/native.rb', line 3063

def page_count
  @page_count
end

#thresholdObject (readonly)

Returns the value of attribute threshold

Returns:

  • (Object)

    the current value of threshold



3063
3064
3065
# File 'lib/xberg/native.rb', line 3063

def threshold
  @threshold
end

Class Method Details

.from_hash(hash) ⇒ Object



3088
3089
3090
# File 'lib/xberg/native.rb', line 3088

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)


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

def chunking_disabled? = false

#fast_text_extraction?Boolean

Returns:

  • (Boolean)


3084
3085
3086
# File 'lib/xberg/native.rb', line 3084

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

#few_pages?Boolean

Returns:

  • (Boolean)


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

def few_pages? = true

#format_not_chunkable?Boolean

Returns:

  • (Boolean)


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

def format_not_chunkable? = false

#small_file?Boolean

Returns:

  • (Boolean)


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

def small_file? = false

#text_layer_detected?Boolean

Returns:

  • (Boolean)


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

def text_layer_detected? = false