Sha256: 977dc9188431d93a1a7aa44ac8d096b3dfff2df2d4b04d8f320a043413b83d65
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 Bytes
Contents
require_relative 'sparkline_groups/sparkline_group' module OoxmlParser # Class for `sparklineGroups` data class SparklineGroups < OOXMLDocumentObject # @return [Array<SparklineGroup>] list of sparkline group attr_reader :sparklines_groups def initialize(parent: nil) @sparklines_groups = [] @parent = parent end # @return [Array, SparklineGroups] accessor def [](key) sparklines_groups[key] end # Parse SparklineGroups data # @param [Nokogiri::XML:Element] node with SparklineGroups data # @return [SparklineGroups] value of SparklineGroups data def parse(node) node.xpath('*').each do |column_node| case column_node.name when 'sparklineGroup' @sparklines_groups << SparklineGroup.new(parent: self).parse(column_node) end end self end end end
Version data entries
3 entries across 3 versions & 1 rubygems