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



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3126
3127
3128
# File 'lib/xberg/native.rb', line 3126

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3122
3123
3124
# File 'lib/xberg/native.rb', line 3122

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = true

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false