Class: Xberg::FormatMetadataPptx

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
FormatMetadata
Defined in:
lib/xberg/native.rb

Overview

Metadata extracted from a PowerPoint presentation.

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



1563
1564
1565
# File 'lib/xberg/native.rb', line 1563

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1615
1616
1617
1618
# File 'lib/xberg/native.rb', line 1615

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


1611
1612
1613
# File 'lib/xberg/native.rb', line 1611

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = true

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false