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)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



1679
1680
1681
# File 'lib/xberg/native.rb', line 1679

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1731
1732
1733
1734
# File 'lib/xberg/native.rb', line 1731

def self.from_hash(hash)
  payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym)
  new(value: ImageMetadata.new(payload))
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


1727
1728
1729
# File 'lib/xberg/native.rb', line 1727

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = true

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false