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)

Returns the value of attribute page_count

Returns:

  • (Object)

    the current value of page_count



768
769
770
# File 'lib/xberg/native.rb', line 768

def page_count
  @page_count
end

#thresholdObject (readonly)

Returns the value of attribute threshold

Returns:

  • (Object)

    the current value of threshold



768
769
770
# File 'lib/xberg/native.rb', line 768

def threshold
  @threshold
end

Class Method Details

.from_hash(hash) ⇒ Object



789
790
791
# File 'lib/xberg/native.rb', line 789

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)


785
786
787
# File 'lib/xberg/native.rb', line 785

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

#large_file?Boolean

Returns:

  • (Boolean)


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

def large_file? = false

#many_pages?Boolean

Returns:

  • (Boolean)


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

def many_pages? = true

#ocr_required?Boolean

Returns:

  • (Boolean)


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

def ocr_required? = false