class OoxmlParser::CacheSource
Class for parsing <cacheSource> file
Attributes
@return [String] type
@return [WorksheetSource] source of worksheet data
Public Instance Methods
Source
# File lib/ooxml_parser/xlsx_parser/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
Parse ‘<cacheSource>` tag # @param [Nokogiri::XML:Element] node with CacheSource
data @return [CacheSource]