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



3269
3270
3271
# File 'lib/xberg/native.rb', line 3269

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = true