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
3791 3792 3793 |
# File 'lib/xberg/native.rb', line 3791 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3844 3845 3846 |
# File 'lib/xberg/native.rb', line 3844 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3810 |
# File 'lib/xberg/native.rb', line 3810 def archive? = false |
#audio? ⇒ Boolean
3838 |
# File 'lib/xberg/native.rb', line 3838 def audio? = false |
#bibtex? ⇒ Boolean
3824 |
# File 'lib/xberg/native.rb', line 3824 def bibtex? = false |
#citation? ⇒ Boolean
3826 |
# File 'lib/xberg/native.rb', line 3826 def citation? = false |
#code? ⇒ Boolean
3840 3841 3842 |
# File 'lib/xberg/native.rb', line 3840 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3822 |
# File 'lib/xberg/native.rb', line 3822 def csv? = false |
#dbf? ⇒ Boolean
3830 |
# File 'lib/xberg/native.rb', line 3830 def dbf? = false |
#docx? ⇒ Boolean
3802 |
# File 'lib/xberg/native.rb', line 3802 def docx? = false |
#email? ⇒ Boolean
3806 |
# File 'lib/xberg/native.rb', line 3806 def email? = false |
#epub? ⇒ Boolean
3834 |
# File 'lib/xberg/native.rb', line 3834 def epub? = false |
#excel? ⇒ Boolean
3804 |
# File 'lib/xberg/native.rb', line 3804 def excel? = false |
#fiction_book? ⇒ Boolean
3828 |
# File 'lib/xberg/native.rb', line 3828 def fiction_book? = false |
#html? ⇒ Boolean
3818 |
# File 'lib/xberg/native.rb', line 3818 def html? = false |
#image? ⇒ Boolean
3812 |
# File 'lib/xberg/native.rb', line 3812 def image? = false |
#jats? ⇒ Boolean
3832 |
# File 'lib/xberg/native.rb', line 3832 def jats? = true |
#ocr? ⇒ Boolean
3820 |
# File 'lib/xberg/native.rb', line 3820 def ocr? = false |
#pdf? ⇒ Boolean
3800 |
# File 'lib/xberg/native.rb', line 3800 def pdf? = false |
#pptx? ⇒ Boolean
3808 |
# File 'lib/xberg/native.rb', line 3808 def pptx? = false |
#pst? ⇒ Boolean
3836 |
# File 'lib/xberg/native.rb', line 3836 def pst? = false |
#text? ⇒ Boolean
3816 |
# File 'lib/xberg/native.rb', line 3816 def text? = false |
#xml? ⇒ Boolean
3814 |
# File 'lib/xberg/native.rb', line 3814 def xml? = false |