Class: Xberg::ChunkingReasonLargeAndManyPages
- Inherits:
-
Data
- Object
- Data
- Xberg::ChunkingReasonLargeAndManyPages
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/xberg/native.rb
Overview
Both size and page count exceed thresholds.
Instance Attribute Summary collapse
-
#page_count ⇒ Object
readonly
Returns the value of attribute page_count.
-
#size_bytes ⇒ Object
readonly
Returns the value of attribute size_bytes.
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)
Returns the value of attribute page_count
820 821 822 |
# File 'lib/xberg/native.rb', line 820 def page_count @page_count end |
#size_bytes ⇒ Object (readonly)
Returns the value of attribute size_bytes
820 821 822 |
# File 'lib/xberg/native.rb', line 820 def size_bytes @size_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
841 842 843 |
# File 'lib/xberg/native.rb', line 841 def self.from_hash(hash) new(size_bytes: hash[:size_bytes] || hash["size_bytes"], page_count: hash[:page_count] || hash["page_count"]) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
837 838 839 |
# File 'lib/xberg/native.rb', line 837 def large_and_many_pages? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
831 |
# File 'lib/xberg/native.rb', line 831 def large_file? = false |
#many_pages? ⇒ Boolean
833 |
# File 'lib/xberg/native.rb', line 833 def many_pages? = false |
#ocr_required? ⇒ Boolean
835 |
# File 'lib/xberg/native.rb', line 835 def ocr_required? = false |