class OoxmlParser::WorksheetSource

Class for parsing <worksheetSource> file

Attributes

ref[R]

@return [String] ref of cells

sheet[R]

@return [String] sheet name

Public Instance Methods

parse(node) click to toggle source

Parse ‘<worksheetSource>` tag # @param [Nokogiri::XML:Element] node with WorksheetSource data @return [WorksheetSource]

# File lib/ooxml_parser/xlsx_parser/workbook/pivot_cache/pivot_cache_definition/cache_source/worksheet_source.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'ref'
      @ref = value.value.to_s
    when 'sheet'
      @sheet = value.value.to_s
    end
  end
  self
end