Class: XLSXToHTML::SpreadsheetParser

Inherits:
Object
  • Object
show all
Extended by:
Helpers
Defined in:
lib/xlsx_to_html/spreadsheet_parser.rb

Class Method Summary collapse

Methods included from Helpers

method_missing, respond_to_missing?

Class Method Details

.parse(xlsx_path, expected_headers = []) ⇒ Object



5
6
7
8
9
10
# File 'lib/xlsx_to_html/spreadsheet_parser.rb', line 5

def self.parse(xlsx_path, expected_headers = [])
  @xlsx_path = xlsx_path
  @headers = expected_headers

  { headers: headers, rows: rows }
end