Module: Google
- Defined in:
- lib/gcal_unit.rb,
lib/gcal_unit/event.rb,
lib/gcal_unit/client.rb,
lib/gcal_unit/errors.rb,
lib/gcal_unit/calendar.rb,
lib/gcal_unit/authorization.rb,
lib/gcal_unit/calendar_list.rb,
lib/gcal_unit/configuration.rb
Overview
Public: Contains all the methods for wrapping the Google API.
Defined Under Namespace
Classes: AuthenticationRequiredError, Authorization, Calendar, CalendarList, CalendarRequiredError, Client, Configuration, Event
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
-
.configuration ⇒ Object
Public: Holds the configuration for calling methods within the Google API.
-
.configure {|configuration| ... } ⇒ Object
Public: Allows configuration for the Google API.
Class Method Details
.configuration ⇒ Object
Public: Holds the configuration for calling methods within the Google API.
Returns a hash used for configuring the calls.
:api_key - Identifies the application requesting the call.
Sent with all the API calls.
:client_id - The OAuth client id that is used to generate
access tokens.
:client_secret - The OAuth client secret that is used to
generate access tokens.
:refresh_token - A token that is used to retrieve an access
token when the original token expires.
27 28 29 |
# File 'lib/gcal_unit.rb', line 27 def self.configuration @configuration ||= Google::Configuration.new end |
.configure {|configuration| ... } ⇒ Object
Public: Allows configuration for the Google API.
Yields the configuration for the Google API.
34 35 36 |
# File 'lib/gcal_unit.rb', line 34 def self.configure yield configuration if block_given? end |