Module: GoogleOAuth

Defined in:
lib/google_oauth.rb,
lib/google_oauth/mail.rb,
lib/google_oauth/client.rb,
lib/google_oauth/calendar.rb,
lib/google_oauth/contacts.rb,
lib/google_oauth/document.rb,
lib/google_oauth/calendar/acl.rb,
lib/google_oauth/calendar/color.rb,
lib/google_oauth/calendar/event.rb,
lib/google_oauth/calendar/setting.rb,
lib/google_oauth/calendar/calendar.rb,
lib/google_oauth/calendar/free_busy.rb,
lib/google_oauth/calendar/calendar_list.rb

Overview

require “google_oauth/mail”

Defined Under Namespace

Modules: Calendar, Contacts, Document, Mail Classes: Client

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Returns the value of attribute client_id.



9
10
11
# File 'lib/google_oauth.rb', line 9

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



9
10
11
# File 'lib/google_oauth.rb', line 9

def client_secret
  @client_secret
end

.hostObject

Returns the value of attribute host.



9
10
11
# File 'lib/google_oauth.rb', line 9

def host
  @host
end

.scopeObject

Returns the value of attribute scope.



9
10
11
# File 'lib/google_oauth.rb', line 9

def scope
  @scope
end

Class Method Details

.client(opts) ⇒ Object



16
17
18
# File 'lib/google_oauth.rb', line 16

def client(opts)
  client.new(opts)
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (GoogleOAuth)

    the object that the method was called on



11
12
13
14
# File 'lib/google_oauth.rb', line 11

def configure
  yield self
  true
end