class OoxmlParser::NumberStringCache
Class for parsing ‘c:tx`, `c:numCache` object
Attributes
format_code[R]
@return [String] Format Code
point_count[R]
@return [StringReference] String reference of series
points[R]
@return [Array, Point] array of points
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
# File lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference/number_string_cache.rb, line 14 def initialize(parent: nil) @points = [] super end
Public Instance Methods
parse(node)
click to toggle source
Parse Order @param [Nokogiri::XML:Node] node with Order @return [Order] result of parsing
# File lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference/number_string_cache.rb, line 22 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'formatCode' @format_code = node_child.text when 'ptCount' @point_count = ValuedChild.new(:integer, parent: self).parse(node_child) when 'pt' @points << Point.new(parent: self).parse(node_child) end end self end