class OoxmlParser::Sound

Class for parsing `snd` tags

Attributes

file_reference[RW]

@return [FileReference] image structure

name[RW]

Public Class Methods

new(path = '', name = '', parent: nil) click to toggle source
Calls superclass method OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/transition/transition/sound_action/sound.rb, line 10
def initialize(path = '', name = '', parent: nil)
  @path = path
  @name = name
  super(parent: parent)
end

Public Instance Methods

parse(node) click to toggle source

Parse Sound @param [Nokogiri::XML:Node] node with NumberingProperties @return [Sound] result of parsing

# File lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/transition/transition/sound_action/sound.rb, line 19
def parse(node)
  @file_reference = FileReference.new(parent: self).parse(node)
  @name = node.attribute('name').value
  self
end