class OoxmlParser::Location
Class for parsing <location> tag
Attributes
@return [Integer] first data column
@return [Integer] first data row
@return [Integer] first header row
@return [String] ref of location
Public Instance Methods
Source
# File lib/ooxml_parser/xlsx_parser/workbook/pivot_table_definition/location.rb, line 18 def parse(node) node.attributes.each do |key, value| case key when 'ref' @ref = value.value.to_s when 'firstHeaderRow' @first_header_row = value.value.to_i when 'firstDataRow' @first_data_row = value.value.to_i when 'firstDataCol' @first_data_column = value.value.to_i end end self end
Parse ‘<location>` tag @param [Nokogiri::XML:Element] node with location data @return [Location]