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



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

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = true

#code?Boolean

Returns:

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

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false