class OoxmlParser::Point

Class for parsing `c:pt` object

Attributes

index[RW]

@return [Integer] index of point

text[R]

@return [TextValue] value of text

value[R]

@return [TextValue] value of text

Public Instance Methods

parse(node) click to toggle source

Parse PointCount @param [Nokogiri::XML:Node] node with PointCount @return [PointCount] result of parsing

# File lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference/string_cache/point.rb, line 20
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'idx'
      @index = value.value.to_f
    end
  end

  node.xpath('*').each do |node_child|
    case node_child.name
    when 'v'
      @value = TextValue.new(parent: self).parse(node_child)
    end
  end

  self
end