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)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2085
2086
2087
# File 'lib/xberg/native.rb', line 2085

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2137
2138
2139
2140
# File 'lib/xberg/native.rb', line 2137

def self.from_hash(hash)
  payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym)
  new(value: CitationMetadata.new(payload))
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = true

#code?Boolean

Returns:

  • (Boolean)


2133
2134
2135
# File 'lib/xberg/native.rb', line 2133

def code? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false