class OoxmlParser::PivotFormat

Parsing chart ‘c:pivotFmt`

Attributes

data_label[R]

@return [DisplayLabelsProperties] data label

index[R]

@return [ValuedChild] index of pivot

Public Instance Methods

parse(node) click to toggle source

Parse PivotFormats object @param node [Nokogiri::XML:Element] node to parse @return [PivotFormat] result of parsing

# 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