class OoxmlParser::AnimationEffect
Class for data for animation effect
Attributes
behavior[RW]
filter[RW]
transition[RW]
Public Instance Methods
parse(node)
click to toggle source
Parse AnimationEffect
object @param node [Nokogiri::XML:Element] node to parse @return [AnimationEffect] result of parsing
# File lib/ooxml_parser/pptx_parser/presentation/slide/slide/timing/time_node_list/animation_effect/animation_effect.rb, line 11 def parse(node) node.attributes.each do |key, value| case key when 'transition' @transition = value.value when 'filter' @filter = value.value end end node.xpath('*').each do |node_child| case node_child.name when 'cBhvr' @behavior = Behavior.new(parent: self).parse(node_child) end end self end