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



3443
3444
3445
# File 'lib/xberg/native.rb', line 3443

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = true

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false