Sha256: 21e524fc0d835c638d01ba15e5b58b2969b4541b346fdf70936c3af3e13eb3ad
Contents?: true
Size: 882 Bytes
Versions: 40
Compression:
Stored size: 882 Bytes
Contents
# frozen_string_literal: true 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 = [] super end # @return [SparklineGroup] 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
40 entries across 40 versions & 1 rubygems