class OoxmlParser::CacheSource
Class for parsing <cacheSource> file
Attributes
type[R]
@return [String] type
worksheet_source[R]
@return [WorksheetSource] source of worksheet data
Public Instance Methods
parse(node)
click to toggle source
Parse `<cacheSource>` tag # @param [Nokogiri::XML:Element] node with CacheSource
data @return [CacheSource]
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/pivot_cache/pivot_cache_definition/cache_source.rb, line 16 def parse(node) node.attributes.each do |key, value| case key when 'type' @type = value.value.to_s end end node.xpath('*').each do |node_child| case node_child.name when 'worksheetSource' @worksheet_source = WorksheetSource.new(parent: self).parse(node_child) end end self end