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



3211
3212
3213
# File 'lib/xberg/native.rb', line 3211

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3264
3265
3266
# File 'lib/xberg/native.rb', line 3264

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3260
3261
3262
# File 'lib/xberg/native.rb', line 3260

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false