Sha256: 4b30c745ebfff9cbfca613f9c5124d1a14d3e7ce2c25d370313bcb2e160d236e
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require_relative 'extension/data_validations' require_relative 'extension/sparkline_groups' require_relative 'extension/x14_table' module OoxmlParser # Class for `ext` data class Extension < OOXMLDocumentObject # @return [DataValidations] list of data validations attr_accessor :data_validations # @return [X14Table] table data in x14 namespace attr_accessor :table # @return [SparklineGroups] list of groups attr_reader :sparkline_groups # Parse Extension data # @param [Nokogiri::XML:Element] node with Extension data # @return [Extension] value of Extension data def parse(node) node.xpath('*').each do |column_node| case column_node.name when 'dataValidations' @data_validations = DataValidations.new(parent: self).parse(column_node) when 'table' @table = X14Table.new(parent: self).parse(column_node) when 'sparklineGroups' @sparkline_groups = SparklineGroups.new(parent: self).parse(column_node) end end self end end end
Version data entries
5 entries across 5 versions & 1 rubygems