Class: Xberg::FormatMetadataXml

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

Overview

Metadata extracted from an XML document.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3296
3297
3298
# File 'lib/xberg/native.rb', line 3296

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

def self.from_hash(hash)
  new(value: hash[:_0] || hash["_0"])
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = true