Class: Xberg::NoChunkingReasonFormatNotChunkable

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
NoChunkingReason
Defined in:
lib/xberg/native.rb

Overview

Document format does not support chunking.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mime_typeObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4044
4045
4046
# File 'lib/xberg/native.rb', line 4044

def mime_type
  @mime_type
end

Class Method Details

.from_hash(hash) ⇒ Object



4066
4067
4068
# File 'lib/xberg/native.rb', line 4066

def self.from_hash(hash)
  new(mime_type: hash[:mime_type] || hash["mime_type"])
end

Instance Method Details

#chunking_disabled?Boolean

Returns:

  • (Boolean)


4060
# File 'lib/xberg/native.rb', line 4060

def chunking_disabled? = false

#fast_text_extraction?Boolean

Returns:

  • (Boolean)


4062
4063
4064
# File 'lib/xberg/native.rb', line 4062

def fast_text_extraction? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#few_pages?Boolean

Returns:

  • (Boolean)


4054
# File 'lib/xberg/native.rb', line 4054

def few_pages? = false

#format_not_chunkable?Boolean

Returns:

  • (Boolean)


4058
# File 'lib/xberg/native.rb', line 4058

def format_not_chunkable? = true

#small_file?Boolean

Returns:

  • (Boolean)


4052
# File 'lib/xberg/native.rb', line 4052

def small_file? = false

#text_layer_detected?Boolean

Returns:

  • (Boolean)


4056
# File 'lib/xberg/native.rb', line 4056

def text_layer_detected? = false