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)

Returns the value of attribute mime_type

Returns:

  • (Object)

    the current value of mime_type



3126
3127
3128
# File 'lib/xberg/native.rb', line 3126

def mime_type
  @mime_type
end

Class Method Details

.from_hash(hash) ⇒ Object



3148
3149
3150
# File 'lib/xberg/native.rb', line 3148

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

Instance Method Details

#chunking_disabled?Boolean

Returns:

  • (Boolean)


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

def chunking_disabled? = false

#fast_text_extraction?Boolean

Returns:

  • (Boolean)


3144
3145
3146
# File 'lib/xberg/native.rb', line 3144

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

#few_pages?Boolean

Returns:

  • (Boolean)


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

def few_pages? = false

#format_not_chunkable?Boolean

Returns:

  • (Boolean)


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

def format_not_chunkable? = true

#small_file?Boolean

Returns:

  • (Boolean)


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

def small_file? = false

#text_layer_detected?Boolean

Returns:

  • (Boolean)


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

def text_layer_detected? = false