Module: Lt::Google::Api::Auth::Credentials

Extended by:
ActiveSupport::Concern
Defined in:
lib/lt/google/api/auth/credentials.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#google_credentialsObject (readonly)

Returns the value of attribute google_credentials.



10
11
12
# File 'lib/lt/google/api/auth/credentials.rb', line 10

def google_credentials
  @google_credentials
end

Instance Method Details

#obtain_google_credentials(options = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/lt/google/api/auth/credentials.rb', line 12

def obtain_google_credentials(options = {})
  @google_auth_options = options
  @google_credentials = service.credentials

  redirect_to service.authorization_url unless @google_credentials
end