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



2891
2892
2893
# File 'lib/xberg/native.rb', line 2891

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false