class OoxmlParser::MarkerLayout

Class for parsing marker layout

Attributes

size[R]

@return [Integer] size of marker

symbol[R]

@return [Symbol] symbol of marker

Public Instance Methods

parse(node) click to toggle source

Parse Marker Layout @param node [Nokogiri::XML:Element] node to parse @return [MarkerLayout] result of parsing

# 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