class OoxmlParser::TargetElement
Class for data for Target Element
Attributes
Public Class Methods
Source
# File lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing/time_node_list/set_time_node/behavior/target_element.rb, line 8 def initialize(type = '', id = '', parent: nil) @type = type @id = id super(parent: parent) end
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
Public Instance Methods
Source
# File lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing/time_node_list/set_time_node/behavior/target_element.rb, line 17 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'spTgt' @type = :shape @id = node_child.attribute('spid').value end end self end
Parse TargetElement
object @param node [Nokogiri::XML:Element] node to parse @return [TargetElement] result of parsing