class OoxmlParser::PivotFormat
Parsing chart ‘c:pivotFmt`
Attributes
@return [DisplayLabelsProperties] data label
@return [ValuedChild] index of pivot
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/pivot_formats/pivot_format.rb, line 14 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'idx' @index = ValuedChild.new(:integer, parent: self).parse(node_child) when 'dLbl' @data_label = DisplayLabelsProperties.new(parent: self).parse(node_child) end end self end
Parse PivotFormats
object @param node [Nokogiri::XML:Element] node to parse @return [PivotFormat] result of parsing