Class: Xberg::FormatMetadataCitation
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataCitation
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a citation file (RIS, PubMed, EndNote).
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
3644 3645 3646 |
# File 'lib/xberg/native.rb', line 3644 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3697 3698 3699 |
# File 'lib/xberg/native.rb', line 3697 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3663 |
# File 'lib/xberg/native.rb', line 3663 def archive? = false |
#audio? ⇒ Boolean
3691 |
# File 'lib/xberg/native.rb', line 3691 def audio? = false |
#bibtex? ⇒ Boolean
3677 |
# File 'lib/xberg/native.rb', line 3677 def bibtex? = false |
#citation? ⇒ Boolean
3679 |
# File 'lib/xberg/native.rb', line 3679 def citation? = true |
#code? ⇒ Boolean
3693 3694 3695 |
# File 'lib/xberg/native.rb', line 3693 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3675 |
# File 'lib/xberg/native.rb', line 3675 def csv? = false |
#dbf? ⇒ Boolean
3683 |
# File 'lib/xberg/native.rb', line 3683 def dbf? = false |
#docx? ⇒ Boolean
3655 |
# File 'lib/xberg/native.rb', line 3655 def docx? = false |
#email? ⇒ Boolean
3659 |
# File 'lib/xberg/native.rb', line 3659 def email? = false |
#epub? ⇒ Boolean
3687 |
# File 'lib/xberg/native.rb', line 3687 def epub? = false |
#excel? ⇒ Boolean
3657 |
# File 'lib/xberg/native.rb', line 3657 def excel? = false |
#fiction_book? ⇒ Boolean
3681 |
# File 'lib/xberg/native.rb', line 3681 def fiction_book? = false |
#html? ⇒ Boolean
3671 |
# File 'lib/xberg/native.rb', line 3671 def html? = false |
#image? ⇒ Boolean
3665 |
# File 'lib/xberg/native.rb', line 3665 def image? = false |
#jats? ⇒ Boolean
3685 |
# File 'lib/xberg/native.rb', line 3685 def jats? = false |
#ocr? ⇒ Boolean
3673 |
# File 'lib/xberg/native.rb', line 3673 def ocr? = false |
#pdf? ⇒ Boolean
3653 |
# File 'lib/xberg/native.rb', line 3653 def pdf? = false |
#pptx? ⇒ Boolean
3661 |
# File 'lib/xberg/native.rb', line 3661 def pptx? = false |
#pst? ⇒ Boolean
3689 |
# File 'lib/xberg/native.rb', line 3689 def pst? = false |
#text? ⇒ Boolean
3669 |
# File 'lib/xberg/native.rb', line 3669 def text? = false |
#xml? ⇒ Boolean
3667 |
# File 'lib/xberg/native.rb', line 3667 def xml? = false |