Class: Xberg::FormatMetadataPptx
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataPptx
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a PowerPoint presentation.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #archive? ⇒ Boolean
- #audio? ⇒ Boolean
- #bibtex? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #csv? ⇒ Boolean
- #dbf? ⇒ Boolean
- #docx? ⇒ Boolean
- #email? ⇒ Boolean
- #epub? ⇒ Boolean
- #excel? ⇒ Boolean
- #fiction_book? ⇒ Boolean
- #html? ⇒ Boolean
- #image? ⇒ Boolean
- #jats? ⇒ Boolean
- #ocr? ⇒ Boolean
- #pdf? ⇒ Boolean
- #pptx? ⇒ Boolean
- #pst? ⇒ Boolean
- #text? ⇒ Boolean
- #xml? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute 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
1581 |
# File 'lib/xberg/native.rb', line 1581 def archive? = false |
#audio? ⇒ Boolean
1609 |
# File 'lib/xberg/native.rb', line 1609 def audio? = false |
#bibtex? ⇒ Boolean
1595 |
# File 'lib/xberg/native.rb', line 1595 def bibtex? = false |
#citation? ⇒ Boolean
1597 |
# File 'lib/xberg/native.rb', line 1597 def citation? = false |
#code? ⇒ 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
1593 |
# File 'lib/xberg/native.rb', line 1593 def csv? = false |
#dbf? ⇒ Boolean
1601 |
# File 'lib/xberg/native.rb', line 1601 def dbf? = false |
#docx? ⇒ Boolean
1573 |
# File 'lib/xberg/native.rb', line 1573 def docx? = false |
#email? ⇒ Boolean
1577 |
# File 'lib/xberg/native.rb', line 1577 def email? = false |
#epub? ⇒ Boolean
1605 |
# File 'lib/xberg/native.rb', line 1605 def epub? = false |
#excel? ⇒ Boolean
1575 |
# File 'lib/xberg/native.rb', line 1575 def excel? = false |
#fiction_book? ⇒ Boolean
1599 |
# File 'lib/xberg/native.rb', line 1599 def fiction_book? = false |
#html? ⇒ Boolean
1589 |
# File 'lib/xberg/native.rb', line 1589 def html? = false |
#image? ⇒ Boolean
1583 |
# File 'lib/xberg/native.rb', line 1583 def image? = false |
#jats? ⇒ Boolean
1603 |
# File 'lib/xberg/native.rb', line 1603 def jats? = false |
#ocr? ⇒ Boolean
1591 |
# File 'lib/xberg/native.rb', line 1591 def ocr? = false |
#pdf? ⇒ Boolean
1571 |
# File 'lib/xberg/native.rb', line 1571 def pdf? = false |
#pptx? ⇒ Boolean
1579 |
# File 'lib/xberg/native.rb', line 1579 def pptx? = true |
#pst? ⇒ Boolean
1607 |
# File 'lib/xberg/native.rb', line 1607 def pst? = false |
#text? ⇒ Boolean
1587 |
# File 'lib/xberg/native.rb', line 1587 def text? = false |
#xml? ⇒ Boolean
1585 |
# File 'lib/xberg/native.rb', line 1585 def xml? = false |