Class: OoxmlParser::MarkerLayout
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::MarkerLayout
- Defined in:
- lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/chart_style_file/marker_layout.rb
Overview
Class for parsing marker layout
Instance Attribute Summary collapse
-
#size ⇒ Integer
readonly
Size of marker.
-
#symbol ⇒ Symbol
readonly
Symbol of marker.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ MarkerLayout
Parse Marker Layout.
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
#size ⇒ Integer (readonly)
Returns size of marker.
7 8 9 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/chart_style_file/marker_layout.rb', line 7 def size @size end |
#symbol ⇒ Symbol (readonly)
Returns symbol of marker.
9 10 11 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/chart_style_file/marker_layout.rb', line 9 def symbol @symbol end |
Instance Method Details
#parse(node) ⇒ MarkerLayout
Parse Marker Layout
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/chart_style_file/marker_layout.rb', line 14 def parse(node) node.attributes.each do |key, value| case key when 'size' @size = value.value.to_i when 'symbol' @symbol = value.value.to_sym end end self end |