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)

Returns the value of attribute size_bytes

Returns:

  • (Object)

    the current value of size_bytes



739
740
741
# File 'lib/xberg/native.rb', line 739

def size_bytes
  @size_bytes
end

#threshold_bytesObject (readonly)

Returns the value of attribute threshold_bytes

Returns:

  • (Object)

    the current value of threshold_bytes



739
740
741
# File 'lib/xberg/native.rb', line 739

def threshold_bytes
  @threshold_bytes
end

Class Method Details

.from_hash(hash) ⇒ Object



760
761
762
763
764
765
# File 'lib/xberg/native.rb', line 760

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)


756
757
758
# File 'lib/xberg/native.rb', line 756

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

#large_file?Boolean

Returns:

  • (Boolean)


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

def large_file? = true

#many_pages?Boolean

Returns:

  • (Boolean)


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

def many_pages? = false

#ocr_required?Boolean

Returns:

  • (Boolean)


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

def ocr_required? = false