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
3617 3618 3619 |
# File 'lib/xberg/native.rb', line 3617 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3670 3671 3672 |
# File 'lib/xberg/native.rb', line 3670 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3636 |
# File 'lib/xberg/native.rb', line 3636 def archive? = false |
#audio? ⇒ Boolean
3664 |
# File 'lib/xberg/native.rb', line 3664 def audio? = false |
#bibtex? ⇒ Boolean
3650 |
# File 'lib/xberg/native.rb', line 3650 def bibtex? = false |
#citation? ⇒ Boolean
3652 |
# File 'lib/xberg/native.rb', line 3652 def citation? = true |
#code? ⇒ Boolean
3666 3667 3668 |
# File 'lib/xberg/native.rb', line 3666 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3648 |
# File 'lib/xberg/native.rb', line 3648 def csv? = false |
#dbf? ⇒ Boolean
3656 |
# File 'lib/xberg/native.rb', line 3656 def dbf? = false |
#docx? ⇒ Boolean
3628 |
# File 'lib/xberg/native.rb', line 3628 def docx? = false |
#email? ⇒ Boolean
3632 |
# File 'lib/xberg/native.rb', line 3632 def email? = false |
#epub? ⇒ Boolean
3660 |
# File 'lib/xberg/native.rb', line 3660 def epub? = false |
#excel? ⇒ Boolean
3630 |
# File 'lib/xberg/native.rb', line 3630 def excel? = false |
#fiction_book? ⇒ Boolean
3654 |
# File 'lib/xberg/native.rb', line 3654 def fiction_book? = false |
#html? ⇒ Boolean
3644 |
# File 'lib/xberg/native.rb', line 3644 def html? = false |
#image? ⇒ Boolean
3638 |
# File 'lib/xberg/native.rb', line 3638 def image? = false |
#jats? ⇒ Boolean
3658 |
# File 'lib/xberg/native.rb', line 3658 def jats? = false |
#ocr? ⇒ Boolean
3646 |
# File 'lib/xberg/native.rb', line 3646 def ocr? = false |
#pdf? ⇒ Boolean
3626 |
# File 'lib/xberg/native.rb', line 3626 def pdf? = false |
#pptx? ⇒ Boolean
3634 |
# File 'lib/xberg/native.rb', line 3634 def pptx? = false |
#pst? ⇒ Boolean
3662 |
# File 'lib/xberg/native.rb', line 3662 def pst? = false |
#text? ⇒ Boolean
3642 |
# File 'lib/xberg/native.rb', line 3642 def text? = false |
#xml? ⇒ Boolean
3640 |
# File 'lib/xberg/native.rb', line 3640 def xml? = false |