Class: Xberg::ChunkingReasonLargeFile
- Inherits:
-
Data
- Object
- Data
- Xberg::ChunkingReasonLargeFile
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/xberg/native.rb
Overview
File exceeds size threshold.
Instance Attribute Summary collapse
-
#size_bytes ⇒ Object
readonly
Returns the value of attribute size_bytes.
-
#threshold_bytes ⇒ Object
readonly
Returns the value of attribute threshold_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
#size_bytes ⇒ Object (readonly)
Returns the value of attribute size_bytes
739 740 741 |
# File 'lib/xberg/native.rb', line 739 def size_bytes @size_bytes end |
#threshold_bytes ⇒ Object (readonly)
Returns the value of attribute threshold_bytes
739 740 741 |
# File 'lib/xberg/native.rb', line 739 def threshold_bytes @threshold_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
760 761 762 763 764 765 |
# File 'lib/xberg/native.rb', line 760 def self.from_hash(hash) new( size_bytes: hash[:size_bytes] || hash["size_bytes"], threshold_bytes: hash[:threshold_bytes] || hash["threshold_bytes"] ) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
756 757 758 |
# File 'lib/xberg/native.rb', line 756 def large_and_many_pages? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
750 |
# File 'lib/xberg/native.rb', line 750 def large_file? = true |
#many_pages? ⇒ Boolean
752 |
# File 'lib/xberg/native.rb', line 752 def many_pages? = false |
#ocr_required? ⇒ Boolean
754 |
# File 'lib/xberg/native.rb', line 754 def ocr_required? = false |