Class: Xberg::ChunkingReasonLargeFile

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

Overview

File exceeds size threshold.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#size_bytesObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4367
4368
4369
# File 'lib/xberg/native.rb', line 4367

def size_bytes
  @size_bytes
end

#threshold_bytesObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4367
4368
4369
# File 'lib/xberg/native.rb', line 4367

def threshold_bytes
  @threshold_bytes
end

Class Method Details

.from_hash(hash) ⇒ Object



4390
4391
4392
4393
4394
4395
# File 'lib/xberg/native.rb', line 4390

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

#large_and_many_pages?Boolean

Returns:

  • (Boolean)


4386
4387
4388
# File 'lib/xberg/native.rb', line 4386

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

#large_file?Boolean

Returns:

  • (Boolean)


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

def large_file? = true

#many_pages?Boolean

Returns:

  • (Boolean)


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

def many_pages? = false

#ocr_required?Boolean

Returns:

  • (Boolean)


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

def ocr_required? = false