class OoxmlParser::Point
Class for parsing ‘c:pt` object
Attributes
@return [Integer] index of point
@return [TextValue] value of text
@return [TextValue] value of text
Public Instance Methods
Source
# 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
Parse PointCount @param [Nokogiri::XML:Node] node with PointCount @return [PointCount] result of parsing