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



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3291
3292
3293
# File 'lib/xberg/native.rb', line 3291

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3287
3288
3289
# File 'lib/xberg/native.rb', line 3287

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false