Module: Lt::Google::Api::Auth::Credentials
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/lt/google/api/auth/credentials.rb
Instance Attribute Summary collapse
-
#google_credentials ⇒ Object
readonly
Returns the value of attribute google_credentials.
Instance Method Summary collapse
Instance Attribute Details
#google_credentials ⇒ Object (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( = {}) @google_auth_options = @google_credentials = service.credentials redirect_to service. unless @google_credentials end |