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



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

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = true

#code?Boolean

Returns:

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

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false