using symbols as hash keys

This commit is contained in:
Volker Zöpfel 2013-11-14 08:19:21 +01:00
parent 5538bded1f
commit 146ccad83a
1 changed files with 7 additions and 7 deletions

View File

@ -70,13 +70,13 @@ module Google
if @authorization.refresh_token
credentials_hash = {
'access_token' => @authorization.access_token,
'authorization_uri' => @authorization.authorization_uri,
'client_id' => @authorization.client_id,
'client_secret' => @authorization.client_secret,
'expires_in' => @authorization.expires_in,
'refresh_token' => @authorization.refresh_token,
'token_credential_uri' => @authorization.token_credential_uri
:access_token => @authorization.access_token,
:authorization_uri => @authorization.authorization_uri,
:client_id => @authorization.client_id,
:client_secret => @authorization.client_secret,
:expires_in => @authorization.expires_in,
:refresh_token => @authorization.refresh_token,
:token_credential_uri => @authorization.token_credential_uri
}
File.open(self.path, 'w', 0600) do |file|