Class: Xberg::FormatMetadataCitation

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (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

Returns:

  • (Boolean)


3636
# File 'lib/xberg/native.rb', line 3636

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


3664
# File 'lib/xberg/native.rb', line 3664

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


3650
# File 'lib/xberg/native.rb', line 3650

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


3652
# File 'lib/xberg/native.rb', line 3652

def citation? = true

#code?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


3648
# File 'lib/xberg/native.rb', line 3648

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


3656
# File 'lib/xberg/native.rb', line 3656

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


3628
# File 'lib/xberg/native.rb', line 3628

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


3632
# File 'lib/xberg/native.rb', line 3632

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


3660
# File 'lib/xberg/native.rb', line 3660

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


3630
# File 'lib/xberg/native.rb', line 3630

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


3654
# File 'lib/xberg/native.rb', line 3654

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


3644
# File 'lib/xberg/native.rb', line 3644

def html? = false

#image?Boolean

Returns:

  • (Boolean)


3638
# File 'lib/xberg/native.rb', line 3638

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


3658
# File 'lib/xberg/native.rb', line 3658

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


3646
# File 'lib/xberg/native.rb', line 3646

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


3626
# File 'lib/xberg/native.rb', line 3626

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


3634
# File 'lib/xberg/native.rb', line 3634

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


3662
# File 'lib/xberg/native.rb', line 3662

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


3642
# File 'lib/xberg/native.rb', line 3642

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


3640
# File 'lib/xberg/native.rb', line 3640

def xml? = false