Class: Xberg::FormatMetadataOcr
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataOcr
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata produced by an OCR pipeline.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #archive? ⇒ Boolean
- #audio? ⇒ Boolean
- #bibtex? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #csv? ⇒ Boolean
- #dbf? ⇒ Boolean
- #docx? ⇒ Boolean
- #email? ⇒ Boolean
- #epub? ⇒ Boolean
- #excel? ⇒ Boolean
- #fiction_book? ⇒ Boolean
- #html? ⇒ Boolean
- #image? ⇒ Boolean
- #jats? ⇒ Boolean
- #ocr? ⇒ Boolean
- #pdf? ⇒ Boolean
- #pptx? ⇒ Boolean
- #pst? ⇒ Boolean
- #text? ⇒ Boolean
- #xml? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (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
3462 |
# File 'lib/xberg/native.rb', line 3462 def archive? = false |
#audio? ⇒ Boolean
3490 |
# File 'lib/xberg/native.rb', line 3490 def audio? = false |
#bibtex? ⇒ Boolean
3476 |
# File 'lib/xberg/native.rb', line 3476 def bibtex? = false |
#citation? ⇒ Boolean
3478 |
# File 'lib/xberg/native.rb', line 3478 def citation? = false |
#code? ⇒ 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
3474 |
# File 'lib/xberg/native.rb', line 3474 def csv? = false |
#dbf? ⇒ Boolean
3482 |
# File 'lib/xberg/native.rb', line 3482 def dbf? = false |
#docx? ⇒ Boolean
3454 |
# File 'lib/xberg/native.rb', line 3454 def docx? = false |
#email? ⇒ Boolean
3458 |
# File 'lib/xberg/native.rb', line 3458 def email? = false |
#epub? ⇒ Boolean
3486 |
# File 'lib/xberg/native.rb', line 3486 def epub? = false |
#excel? ⇒ Boolean
3456 |
# File 'lib/xberg/native.rb', line 3456 def excel? = false |
#fiction_book? ⇒ Boolean
3480 |
# File 'lib/xberg/native.rb', line 3480 def fiction_book? = false |
#html? ⇒ Boolean
3470 |
# File 'lib/xberg/native.rb', line 3470 def html? = false |
#image? ⇒ Boolean
3464 |
# File 'lib/xberg/native.rb', line 3464 def image? = false |
#jats? ⇒ Boolean
3484 |
# File 'lib/xberg/native.rb', line 3484 def jats? = false |
#ocr? ⇒ Boolean
3472 |
# File 'lib/xberg/native.rb', line 3472 def ocr? = true |
#pdf? ⇒ Boolean
3452 |
# File 'lib/xberg/native.rb', line 3452 def pdf? = false |
#pptx? ⇒ Boolean
3460 |
# File 'lib/xberg/native.rb', line 3460 def pptx? = false |
#pst? ⇒ Boolean
3488 |
# File 'lib/xberg/native.rb', line 3488 def pst? = false |
#text? ⇒ Boolean
3468 |
# File 'lib/xberg/native.rb', line 3468 def text? = false |
#xml? ⇒ Boolean
3466 |
# File 'lib/xberg/native.rb', line 3466 def xml? = false |