Class: Kreuzberg::NoChunkingReasonFormatNotChunkable

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
NoChunkingReason
Defined in:
lib/kreuzberg/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



4233
4234
4235
# File 'lib/kreuzberg/native.rb', line 4233

def mime_type
  @mime_type
end

Class Method Details

.from_hash(hash) ⇒ Object



4255
4256
4257
# File 'lib/kreuzberg/native.rb', line 4255

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

Instance Method Details

#chunking_disabled?Boolean

Returns:

  • (Boolean)


4249
# File 'lib/kreuzberg/native.rb', line 4249

def chunking_disabled? = false

#fast_text_extraction?Boolean

Returns:

  • (Boolean)


4251
4252
4253
# File 'lib/kreuzberg/native.rb', line 4251

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

#few_pages?Boolean

Returns:

  • (Boolean)


4243
# File 'lib/kreuzberg/native.rb', line 4243

def few_pages? = false

#format_not_chunkable?Boolean

Returns:

  • (Boolean)


4247
# File 'lib/kreuzberg/native.rb', line 4247

def format_not_chunkable? = true

#small_file?Boolean

Returns:

  • (Boolean)


4241
# File 'lib/kreuzberg/native.rb', line 4241

def small_file? = false

#text_layer_detected?Boolean

Returns:

  • (Boolean)


4245
# File 'lib/kreuzberg/native.rb', line 4245

def text_layer_detected? = false