class OoxmlParser::Sound
Class for parsing ‘snd` tags
Attributes
file_reference[RW]
@return [FileReference] image structure
name[R]
@return [String] name of sound
Public Class Methods
new(path = '', name = '', parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# 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
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/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