Class: OoxmlParser::Wheel
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::Wheel
- Defined in:
- lib/ooxml_parser/pptx_parser/presentation/slide/transition/transition_properties/transition_properties/wheel.rb
Overview
Class for Wheel Slide Transition ‘p:wheel` tag
Instance Attribute Summary collapse
-
#spokes ⇒ Integer
readonly
Count of spokes.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ Wheel
Parse Wheel object.
Methods inherited from OOXMLDocumentObject
#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?
Methods included from OoxmlObjectAttributeHelper
#attribute_enabled?, #option_enabled?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#spokes ⇒ Integer (readonly)
Returns count of spokes.
7 8 9 |
# File 'lib/ooxml_parser/pptx_parser/presentation/slide/transition/transition_properties/transition_properties/wheel.rb', line 7 def spokes @spokes end |
Instance Method Details
#parse(node) ⇒ Wheel
Parse Wheel object
12 13 14 15 16 17 18 19 20 |
# File 'lib/ooxml_parser/pptx_parser/presentation/slide/transition/transition_properties/transition_properties/wheel.rb', line 12 def parse(node) node.attributes.each do |key, value| case key when 'spokes' @spokes = value.value.to_i end end self end |