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
3305 3306 3307 |
# File 'lib/xberg/native.rb', line 3305 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3358 3359 3360 |
# File 'lib/xberg/native.rb', line 3358 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3324 |
# File 'lib/xberg/native.rb', line 3324 def archive? = false |
#audio? ⇒ Boolean
3352 |
# File 'lib/xberg/native.rb', line 3352 def audio? = false |
#bibtex? ⇒ Boolean
3338 |
# File 'lib/xberg/native.rb', line 3338 def bibtex? = false |
#citation? ⇒ Boolean
3340 |
# File 'lib/xberg/native.rb', line 3340 def citation? = true |
#code? ⇒ Boolean
3354 3355 3356 |
# File 'lib/xberg/native.rb', line 3354 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3336 |
# File 'lib/xberg/native.rb', line 3336 def csv? = false |
#dbf? ⇒ Boolean
3344 |
# File 'lib/xberg/native.rb', line 3344 def dbf? = false |
#docx? ⇒ Boolean
3316 |
# File 'lib/xberg/native.rb', line 3316 def docx? = false |
#email? ⇒ Boolean
3320 |
# File 'lib/xberg/native.rb', line 3320 def email? = false |
#epub? ⇒ Boolean
3348 |
# File 'lib/xberg/native.rb', line 3348 def epub? = false |
#excel? ⇒ Boolean
3318 |
# File 'lib/xberg/native.rb', line 3318 def excel? = false |
#fiction_book? ⇒ Boolean
3342 |
# File 'lib/xberg/native.rb', line 3342 def fiction_book? = false |
#html? ⇒ Boolean
3332 |
# File 'lib/xberg/native.rb', line 3332 def html? = false |
#image? ⇒ Boolean
3326 |
# File 'lib/xberg/native.rb', line 3326 def image? = false |
#jats? ⇒ Boolean
3346 |
# File 'lib/xberg/native.rb', line 3346 def jats? = false |
#ocr? ⇒ Boolean
3334 |
# File 'lib/xberg/native.rb', line 3334 def ocr? = false |
#pdf? ⇒ Boolean
3314 |
# File 'lib/xberg/native.rb', line 3314 def pdf? = false |
#pptx? ⇒ Boolean
3322 |
# File 'lib/xberg/native.rb', line 3322 def pptx? = false |
#pst? ⇒ Boolean
3350 |
# File 'lib/xberg/native.rb', line 3350 def pst? = false |
#text? ⇒ Boolean
3330 |
# File 'lib/xberg/native.rb', line 3330 def text? = false |
#xml? ⇒ Boolean
3328 |
# File 'lib/xberg/native.rb', line 3328 def xml? = false |