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



2899
2900
2901
# File 'lib/xberg/native.rb', line 2899

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2952
2953
2954
# File 'lib/xberg/native.rb', line 2952

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2948
2949
2950
# File 'lib/xberg/native.rb', line 2948

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false