Class: Xberg::FormatMetadataImage

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

Overview

Metadata extracted from a raster or vector image.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3136
3137
3138
# File 'lib/xberg/native.rb', line 3136

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3189
3190
3191
# File 'lib/xberg/native.rb', line 3189

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3185
3186
3187
# File 'lib/xberg/native.rb', line 3185

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false