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



3065
3066
3067
# File 'lib/xberg/native.rb', line 3065

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3118
3119
3120
# File 'lib/xberg/native.rb', line 3118

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3114
3115
3116
# File 'lib/xberg/native.rb', line 3114

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = true

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false