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
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
- #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)
Returns the value of attribute size_bytes
3030 3031 3032 |
# File 'lib/xberg/native.rb', line 3030 def size_bytes @size_bytes end |
#threshold_bytes ⇒ Object (readonly)
Returns the value of attribute threshold_bytes
3030 3031 3032 |
# File 'lib/xberg/native.rb', line 3030 def threshold_bytes @threshold_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
3055 3056 3057 3058 3059 3060 |
# File 'lib/xberg/native.rb', line 3055 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
3049 |
# File 'lib/xberg/native.rb', line 3049 def chunking_disabled? = false |
#fast_text_extraction? ⇒ Boolean
3051 3052 3053 |
# File 'lib/xberg/native.rb', line 3051 def fast_text_extraction? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#few_pages? ⇒ Boolean
3043 |
# File 'lib/xberg/native.rb', line 3043 def few_pages? = false |
#format_not_chunkable? ⇒ Boolean
3047 |
# File 'lib/xberg/native.rb', line 3047 def format_not_chunkable? = false |
#small_file? ⇒ Boolean
3041 |
# File 'lib/xberg/native.rb', line 3041 def small_file? = true |
#text_layer_detected? ⇒ Boolean
3045 |
# File 'lib/xberg/native.rb', line 3045 def text_layer_detected? = false |