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



4267
4268
4269
# File 'lib/xberg/native.rb', line 4267

def mime_type
  @mime_type
end

Class Method Details

.from_hash(hash) ⇒ Object



4290
4291
4292
# File 'lib/xberg/native.rb', line 4290

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

Instance Method Details

#chunking_disabled?Boolean

Returns:

  • (Boolean)


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

def chunking_disabled? = false

#fast_text_extraction?Boolean

Returns:

  • (Boolean)


4286
4287
4288
# File 'lib/xberg/native.rb', line 4286

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

#few_pages?Boolean

Returns:

  • (Boolean)


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

def few_pages? = false

#format_not_chunkable?Boolean

Returns:

  • (Boolean)


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

def format_not_chunkable? = true

#small_file?Boolean

Returns:

  • (Boolean)


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

def small_file? = false

#text_layer_detected?Boolean

Returns:

  • (Boolean)


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

def text_layer_detected? = false