Class: Xberg::NoChunkingReasonSmallFile
- Inherits:
-
Data
- Object
- Data
- Xberg::NoChunkingReasonSmallFile
- Extended by:
- T::Sig
- Includes:
- NoChunkingReason
- Defined in:
- lib/xberg/native.rb
Overview
File is below 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
- #chunking_disabled? ⇒ Boolean
- #fast_text_extraction? ⇒ Boolean
- #few_pages? ⇒ Boolean
- #format_not_chunkable? ⇒ Boolean
- #small_file? ⇒ Boolean
- #text_layer_detected? ⇒ Boolean
Instance Attribute Details
#size_bytes ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4517 4518 4519 |
# File 'lib/xberg/native.rb', line 4517 def size_bytes @size_bytes end |
#threshold_bytes ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4517 4518 4519 |
# File 'lib/xberg/native.rb', line 4517 def threshold_bytes @threshold_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
4544 4545 4546 4547 4548 4549 |
# File 'lib/xberg/native.rb', line 4544 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
#chunking_disabled? ⇒ Boolean
4538 |
# File 'lib/xberg/native.rb', line 4538 def chunking_disabled? = false |
#fast_text_extraction? ⇒ Boolean
4540 4541 4542 |
# File 'lib/xberg/native.rb', line 4540 def fast_text_extraction? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#few_pages? ⇒ Boolean
4532 |
# File 'lib/xberg/native.rb', line 4532 def few_pages? = false |
#format_not_chunkable? ⇒ Boolean
4536 |
# File 'lib/xberg/native.rb', line 4536 def format_not_chunkable? = false |
#small_file? ⇒ Boolean
4530 |
# File 'lib/xberg/native.rb', line 4530 def small_file? = true |
#text_layer_detected? ⇒ Boolean
4534 |
# File 'lib/xberg/native.rb', line 4534 def text_layer_detected? = false |