Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SheetsV4::GoogleExtensions #26

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Add SheetsV4::GoogleExtensions #26

merged 1 commit into from
Oct 16, 2023

Conversation

jcouball
Copy link
Member

The SheetsV4::GoogleExtensions module provides extensions to the Google::Apis::SheetsV4
classes to simplify use of the SheetsV4 API.

These extensions are not loaded by default and are not required to use other parts
of this Gem. To enable these extension, you must:

require 'sheets_v4/google_extensions'

SheetsService Extensions

Functionality is added to get_spreadsheet to set the sheets_service attribute on
the returned spreadsheet and set the sheets_service and spreadsheet attributes
on the sheets contained in the spreadsheet.

This can simplify complex spreadsheet updates because you won't have to pass a
sheets_service, spreadsheet, and sheet objects separately.

Spreadsheet Extensions

The sheets_service attribute is added and is set by SheetsService#get_spreadsheet.

Sheet Extensions

The sheets_service and spreadsheet attributes are added. Both are set when the
sheet's spreadsheet is loaded by SheetsService#get_spreadsheet.

@jcouball jcouball changed the title Add extensions to Google::Apis::SheetsV4 classes Add SheetsV4::GoogleExtensions Oct 15, 2023
@jcouball jcouball merged commit d8f695c into main Oct 16, 2023
4 checks passed
@jcouball jcouball deleted the google_extensions branch October 16, 2023 00:05
@jcouball jcouball mentioned this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant