Class: Xberg::FormatMetadataOcr

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

Overview

Metadata produced by an OCR pipeline.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3368
3369
3370
# File 'lib/xberg/native.rb', line 3368

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3421
3422
3423
# File 'lib/xberg/native.rb', line 3421

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3417
3418
3419
# File 'lib/xberg/native.rb', line 3417

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = true

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false