lib/tabulator/reader.rb in tabulator-0.4.0 vs lib/tabulator/reader.rb in tabulator-0.5.0
- old
+ new
@@ -8,11 +8,11 @@
def initialize file_key, config_file = 'config.json'
session = GoogleDrive::Session.from_service_account_key(config_file)
@file = session.spreadsheet_by_key(file_key)
end
- def [] worksheet
- Worksheet.build @file.worksheets[worksheet].rows
+ def [] worksheet, **options
+ Worksheet.build @file.worksheets[worksheet].rows, **options
end
class Worksheet
def self.build rows, **options