Method: OoxmlParser::Location#parse
- Defined in:
- lib/ooxml_parser/xlsx_parser/workbook/pivot_table_definition/location.rb
#parse(node) ⇒ Location
Parse ‘<location>` tag
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# 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 |