Class: Xberg::FormatMetadataJats

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
FormatMetadata
Defined in:
lib/xberg/native.rb

Overview

Metadata extracted from a JATS (Journal Article Tag Suite) XML file.

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



2259
2260
2261
# File 'lib/xberg/native.rb', line 2259

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2311
2312
2313
2314
# File 'lib/xberg/native.rb', line 2311

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2307
2308
2309
# File 'lib/xberg/native.rb', line 2307

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = true

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false