Object
Represents cached OAuth 2 tokens stored on local disk in a JSON serialized file. Meant to resemble the serialized format google-api-python-client.googlecode.com/hg/docs/epy/oauth2client.file.Storage-class.html
Write the credentials to the specified store.
@params [Signet::OAuth2::Client] authorization
Optional authorization instance. If not provided, the authorization already associated with this instance will be written.
# File lib/google/api_client/auth/storage.rb, line 49 def write_credentials(authorization=nil) @authorization = authorization if authorization if @authorization.respond_to?(:refresh_token) && @authorization.refresh_token store.write_credentials(credentials_hash) end end
Generated with the Darkfish Rdoc Generator 2.