Class: Xberg::FormatMetadataHtml

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

Overview

Metadata extracted from an HTML document.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3385
3386
3387
# File 'lib/xberg/native.rb', line 3385

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3438
3439
3440
# File 'lib/xberg/native.rb', line 3438

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3434
3435
3436
# File 'lib/xberg/native.rb', line 3434

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = true

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false