Class: Xberg::FormatMetadataJats
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataJats
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a JATS (Journal Article Tag Suite) XML file.
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
3317 3318 3319 |
# File 'lib/xberg/native.rb', line 3317 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3369 3370 3371 |
# File 'lib/xberg/native.rb', line 3369 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3335 |
# File 'lib/xberg/native.rb', line 3335 def archive? = false |
#audio? ⇒ Boolean
3363 |
# File 'lib/xberg/native.rb', line 3363 def audio? = false |
#bibtex? ⇒ Boolean
3349 |
# File 'lib/xberg/native.rb', line 3349 def bibtex? = false |
#citation? ⇒ Boolean
3351 |
# File 'lib/xberg/native.rb', line 3351 def citation? = false |
#code? ⇒ Boolean
3365 3366 3367 |
# File 'lib/xberg/native.rb', line 3365 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3347 |
# File 'lib/xberg/native.rb', line 3347 def csv? = false |
#dbf? ⇒ Boolean
3355 |
# File 'lib/xberg/native.rb', line 3355 def dbf? = false |
#docx? ⇒ Boolean
3327 |
# File 'lib/xberg/native.rb', line 3327 def docx? = false |
#email? ⇒ Boolean
3331 |
# File 'lib/xberg/native.rb', line 3331 def email? = false |
#epub? ⇒ Boolean
3359 |
# File 'lib/xberg/native.rb', line 3359 def epub? = false |
#excel? ⇒ Boolean
3329 |
# File 'lib/xberg/native.rb', line 3329 def excel? = false |
#fiction_book? ⇒ Boolean
3353 |
# File 'lib/xberg/native.rb', line 3353 def fiction_book? = false |
#html? ⇒ Boolean
3343 |
# File 'lib/xberg/native.rb', line 3343 def html? = false |
#image? ⇒ Boolean
3337 |
# File 'lib/xberg/native.rb', line 3337 def image? = false |
#jats? ⇒ Boolean
3357 |
# File 'lib/xberg/native.rb', line 3357 def jats? = true |
#ocr? ⇒ Boolean
3345 |
# File 'lib/xberg/native.rb', line 3345 def ocr? = false |
#pdf? ⇒ Boolean
3325 |
# File 'lib/xberg/native.rb', line 3325 def pdf? = false |
#pptx? ⇒ Boolean
3333 |
# File 'lib/xberg/native.rb', line 3333 def pptx? = false |
#pst? ⇒ Boolean
3361 |
# File 'lib/xberg/native.rb', line 3361 def pst? = false |
#text? ⇒ Boolean
3341 |
# File 'lib/xberg/native.rb', line 3341 def text? = false |
#xml? ⇒ Boolean
3339 |
# File 'lib/xberg/native.rb', line 3339 def xml? = false |