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
3818 3819 3820 |
# File 'lib/xberg/native.rb', line 3818 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3871 3872 3873 |
# File 'lib/xberg/native.rb', line 3871 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3837 |
# File 'lib/xberg/native.rb', line 3837 def archive? = false |
#audio? ⇒ Boolean
3865 |
# File 'lib/xberg/native.rb', line 3865 def audio? = false |
#bibtex? ⇒ Boolean
3851 |
# File 'lib/xberg/native.rb', line 3851 def bibtex? = false |
#citation? ⇒ Boolean
3853 |
# File 'lib/xberg/native.rb', line 3853 def citation? = false |
#code? ⇒ Boolean
3867 3868 3869 |
# File 'lib/xberg/native.rb', line 3867 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3849 |
# File 'lib/xberg/native.rb', line 3849 def csv? = false |
#dbf? ⇒ Boolean
3857 |
# File 'lib/xberg/native.rb', line 3857 def dbf? = false |
#docx? ⇒ Boolean
3829 |
# File 'lib/xberg/native.rb', line 3829 def docx? = false |
#email? ⇒ Boolean
3833 |
# File 'lib/xberg/native.rb', line 3833 def email? = false |
#epub? ⇒ Boolean
3861 |
# File 'lib/xberg/native.rb', line 3861 def epub? = false |
#excel? ⇒ Boolean
3831 |
# File 'lib/xberg/native.rb', line 3831 def excel? = false |
#fiction_book? ⇒ Boolean
3855 |
# File 'lib/xberg/native.rb', line 3855 def fiction_book? = false |
#html? ⇒ Boolean
3845 |
# File 'lib/xberg/native.rb', line 3845 def html? = false |
#image? ⇒ Boolean
3839 |
# File 'lib/xberg/native.rb', line 3839 def image? = false |
#jats? ⇒ Boolean
3859 |
# File 'lib/xberg/native.rb', line 3859 def jats? = true |
#ocr? ⇒ Boolean
3847 |
# File 'lib/xberg/native.rb', line 3847 def ocr? = false |
#pdf? ⇒ Boolean
3827 |
# File 'lib/xberg/native.rb', line 3827 def pdf? = false |
#pptx? ⇒ Boolean
3835 |
# File 'lib/xberg/native.rb', line 3835 def pptx? = false |
#pst? ⇒ Boolean
3863 |
# File 'lib/xberg/native.rb', line 3863 def pst? = false |
#text? ⇒ Boolean
3843 |
# File 'lib/xberg/native.rb', line 3843 def text? = false |
#xml? ⇒ Boolean
3841 |
# File 'lib/xberg/native.rb', line 3841 def xml? = false |