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



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3465
3466
3467
# File 'lib/xberg/native.rb', line 3465

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3461
3462
3463
# File 'lib/xberg/native.rb', line 3461

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = true

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false