class OoxmlParser::Extension

Class for `ext` data

Attributes

conditional_formattings[R]

@return [ConditionalFormattings] list of conditional formattings

data_validations[RW]

@return [DataValidations] list of data validations

sparkline_groups[R]

@return [SparklineGroups] list of groups

table[RW]

@return [X14Table] table data in x14 namespace

Public Instance Methods

parse(node) click to toggle source

Parse Extension data @param [Nokogiri::XML:Element] node with Extension data @return [Extension] value of Extension data

# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb, line 22
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 'conditionalFormattings'
      @conditional_formattings = ConditionalFormattings.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