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
rubocop:disable Lint/UselessMethodDefinition.
-
#threshold_bytes ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
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)
rubocop:disable Lint/UselessMethodDefinition
4373 4374 4375 |
# File 'lib/xberg/native.rb', line 4373 def size_bytes @size_bytes end |
#threshold_bytes ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4373 4374 4375 |
# File 'lib/xberg/native.rb', line 4373 def threshold_bytes @threshold_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
4396 4397 4398 4399 4400 4401 |
# File 'lib/xberg/native.rb', line 4396 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
4392 4393 4394 |
# File 'lib/xberg/native.rb', line 4392 def large_and_many_pages? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
4386 |
# File 'lib/xberg/native.rb', line 4386 def large_file? = true |
#many_pages? ⇒ Boolean
4388 |
# File 'lib/xberg/native.rb', line 4388 def many_pages? = false |
#ocr_required? ⇒ Boolean
4390 |
# File 'lib/xberg/native.rb', line 4390 def ocr_required? = false |