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
3716 3717 3718 |
# File 'lib/xberg/native.rb', line 3716 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3769 3770 3771 |
# File 'lib/xberg/native.rb', line 3769 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3735 |
# File 'lib/xberg/native.rb', line 3735 def archive? = false |
#audio? ⇒ Boolean
3763 |
# File 'lib/xberg/native.rb', line 3763 def audio? = false |
#bibtex? ⇒ Boolean
3749 |
# File 'lib/xberg/native.rb', line 3749 def bibtex? = false |
#citation? ⇒ Boolean
3751 |
# File 'lib/xberg/native.rb', line 3751 def citation? = false |
#code? ⇒ Boolean
3765 3766 3767 |
# File 'lib/xberg/native.rb', line 3765 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3747 |
# File 'lib/xberg/native.rb', line 3747 def csv? = false |
#dbf? ⇒ Boolean
3755 |
# File 'lib/xberg/native.rb', line 3755 def dbf? = false |
#docx? ⇒ Boolean
3727 |
# File 'lib/xberg/native.rb', line 3727 def docx? = false |
#email? ⇒ Boolean
3731 |
# File 'lib/xberg/native.rb', line 3731 def email? = false |
#epub? ⇒ Boolean
3759 |
# File 'lib/xberg/native.rb', line 3759 def epub? = false |
#excel? ⇒ Boolean
3729 |
# File 'lib/xberg/native.rb', line 3729 def excel? = false |
#fiction_book? ⇒ Boolean
3753 |
# File 'lib/xberg/native.rb', line 3753 def fiction_book? = false |
#html? ⇒ Boolean
3743 |
# File 'lib/xberg/native.rb', line 3743 def html? = false |
#image? ⇒ Boolean
3737 |
# File 'lib/xberg/native.rb', line 3737 def image? = false |
#jats? ⇒ Boolean
3757 |
# File 'lib/xberg/native.rb', line 3757 def jats? = true |
#ocr? ⇒ Boolean
3745 |
# File 'lib/xberg/native.rb', line 3745 def ocr? = false |
#pdf? ⇒ Boolean
3725 |
# File 'lib/xberg/native.rb', line 3725 def pdf? = false |
#pptx? ⇒ Boolean
3733 |
# File 'lib/xberg/native.rb', line 3733 def pptx? = false |
#pst? ⇒ Boolean
3761 |
# File 'lib/xberg/native.rb', line 3761 def pst? = false |
#text? ⇒ Boolean
3741 |
# File 'lib/xberg/native.rb', line 3741 def text? = false |
#xml? ⇒ Boolean
3739 |
# File 'lib/xberg/native.rb', line 3739 def xml? = false |