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



3470
3471
3472
# File 'lib/xberg/native.rb', line 3470

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3523
3524
3525
# File 'lib/xberg/native.rb', line 3523

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3519
3520
3521
# File 'lib/xberg/native.rb', line 3519

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = true

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false