module Lt::Google::Api::Auth::Credentials

Attributes

google_credentials[R]

Public Instance Methods

obtain_google_credentials(options = {}) click to toggle source
# 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

Private Instance Methods

service() click to toggle source
# File lib/lt/google/api/auth/credentials.rb, line 21
def service
  @service ||= Lt::Google::Api::Auth::Service.new(self, @google_auth_options)
end