Class: Tabulator::Reader
- Inherits:
-
Object
- Object
- Tabulator::Reader
- Defined in:
- lib/tabulator/reader.rb
Defined Under Namespace
Classes: Worksheet
Instance Method Summary collapse
- #[](worksheet) ⇒ Object
-
#initialize(file_key, config_file = 'config.json') ⇒ Reader
constructor
A new instance of Reader.
Constructor Details
#initialize(file_key, config_file = 'config.json') ⇒ Reader
Returns a new instance of Reader.
8 9 10 11 |
# File 'lib/tabulator/reader.rb', line 8 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 |