Class: MyBanner::SpreadsheetClient

Inherits:
Google::Apis::SheetsV4::SheetsService
  • Object
show all
Defined in:
lib/my_banner/spreadsheet_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(authorization = nil) ⇒ SpreadsheetClient

Returns a new instance of SpreadsheetClient.

Parameters:



7
8
9
10
11
12
13
# File 'lib/my_banner/spreadsheet_client.rb', line 7

def initialize(authorization=nil)
  super()
  self.client_options.application_name = "MyBanner Spreadsheet Client"
  self.client_options.application_version = VERSION
  authorization ||= SpreadsheetAuthorization.new
  self.authorization = authorization.stored_credentials || authorization.user_provided_credentials
end