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
2975 2976 2977 |
# File 'lib/xberg/native.rb', line 2975 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3027 3028 3029 |
# File 'lib/xberg/native.rb', line 3027 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
2993 |
# File 'lib/xberg/native.rb', line 2993 def archive? = false |
#audio? ⇒ Boolean
3021 |
# File 'lib/xberg/native.rb', line 3021 def audio? = false |
#bibtex? ⇒ Boolean
3007 |
# File 'lib/xberg/native.rb', line 3007 def bibtex? = false |
#citation? ⇒ Boolean
3009 |
# File 'lib/xberg/native.rb', line 3009 def citation? = false |
#code? ⇒ Boolean
3023 3024 3025 |
# File 'lib/xberg/native.rb', line 3023 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3005 |
# File 'lib/xberg/native.rb', line 3005 def csv? = false |
#dbf? ⇒ Boolean
3013 |
# File 'lib/xberg/native.rb', line 3013 def dbf? = false |
#docx? ⇒ Boolean
2985 |
# File 'lib/xberg/native.rb', line 2985 def docx? = false |
#email? ⇒ Boolean
2989 |
# File 'lib/xberg/native.rb', line 2989 def email? = false |
#epub? ⇒ Boolean
3017 |
# File 'lib/xberg/native.rb', line 3017 def epub? = false |
#excel? ⇒ Boolean
2987 |
# File 'lib/xberg/native.rb', line 2987 def excel? = false |
#fiction_book? ⇒ Boolean
3011 |
# File 'lib/xberg/native.rb', line 3011 def fiction_book? = false |
#html? ⇒ Boolean
3001 |
# File 'lib/xberg/native.rb', line 3001 def html? = false |
#image? ⇒ Boolean
2995 |
# File 'lib/xberg/native.rb', line 2995 def image? = false |
#jats? ⇒ Boolean
3015 |
# File 'lib/xberg/native.rb', line 3015 def jats? = false |
#ocr? ⇒ Boolean
3003 |
# File 'lib/xberg/native.rb', line 3003 def ocr? = true |
#pdf? ⇒ Boolean
2983 |
# File 'lib/xberg/native.rb', line 2983 def pdf? = false |
#pptx? ⇒ Boolean
2991 |
# File 'lib/xberg/native.rb', line 2991 def pptx? = false |
#pst? ⇒ Boolean
3019 |
# File 'lib/xberg/native.rb', line 3019 def pst? = false |
#text? ⇒ Boolean
2999 |
# File 'lib/xberg/native.rb', line 2999 def text? = false |
#xml? ⇒ Boolean
2997 |
# File 'lib/xberg/native.rb', line 2997 def xml? = false |