class OoxmlParser::Sound
Class for parsing ‘snd` tags
Attributes
@return [FileReference] image structure
@return [String] name of sound
Public Class Methods
Source
# File lib/ooxml_parser/pptx_parser/presentation/slide/transition/transition/sound_action/sound.rb, line 11 def initialize(path = '', name = '', parent: nil) @path = path @name = name super(parent: parent) end
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
Public Instance Methods
Source
# File lib/ooxml_parser/pptx_parser/presentation/slide/transition/transition/sound_action/sound.rb, line 20 def parse(node) @file_reference = FileReference.new(parent: self).parse(node) node.attributes.each do |key, value| case key when 'name' @name = value.value.to_s end end self end
Parse Sound
@param [Nokogiri::XML:Node] node with NumberingProperties
@return [Sound] result of parsing