Module: SheetsV4::GoogleExtensions::SheetsService
- Included in:
- Google::Apis::SheetsV4::SheetsService
- Defined in:
- lib/sheets_v4/google_extensions/sheets_service.rb
Overview
This module extends the Google::Apis::SheetsV4::SheetsService
class to add
attributes to the Google::Apis::SheetsV4::Spreadsheet
and Google::Apis::SheetsV4::Sheet
classes that reference the SheetsService
instance used to retrieve them.
Similarly, an attribute is added to the Google::Apis::SheetsV4::Sheet
class
that references the Google::Apis::SheetsV4::Spreadsheet
instance that contains it.
This allows getting the SheetsService
object from a spreadsheet or sheet object,
making it unnecessary to pass the SheetsService
object around with the spreadsheet
and its sheets.
Instance Method Summary collapse
-
#get_spreadsheet(spreadsheet_id, include_grid_data, ranges, fields, quota_user, options, &block) ⇒ Google::Apis::SheetsV4::Spreadsheet
Gets an existing spreadsheet.
Instance Method Details
#get_spreadsheet(spreadsheet_id, include_grid_data, ranges, fields, quota_user, options, &block) ⇒ Google::Apis::SheetsV4::Spreadsheet
Gets an existing spreadsheet
Creates a spreadsheet object by calling the original Google::Apis::SheetsV4::SheetsService#get_spreadsheet method and then does the following:
- Sets the
sheets_service
attribute for the returned spreadsheet. - Sets the
sheets_service
andspreadsheet
attributes all the sheets contained in the spreadsheet.
See the documentation for Google::Apis::SheetsV4::SheetsService#get_spreadsheet for details on the parameters and return value.
|
# File 'lib/sheets_v4/google_extensions/sheets_service.rb', line 51
|