Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
incorporate style feedback from @sporkmonger on ab23fe7
  • Loading branch information
yaauie committed Jan 4, 2013
1 parent ab23fe7 commit 84ddf9b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/google/api_client.rb
Expand Up @@ -93,7 +93,7 @@ def initialize(options={})
# default authentication mechanisms.
self.authorization =
options.key?(:authorization) ? options[:authorization] : :oauth_2
self.auto_refresh_token = options.fetch(:auto_refresh_token){ true }
self.auto_refresh_token = options.fetch(:auto_refresh_token) { true }
self.key = options[:key]
self.user_ip = options[:user_ip]
@discovery_uris = {}
Expand Down Expand Up @@ -158,19 +158,19 @@ def authorization=(new_authorization)
return @authorization
end

##
# The application's API key issued by the API console.
#
# @return [String] The API key.
attr_accessor :key

##
# The setting that controls whether or not the api client attempts to
# refresh authorization when a 401 is hit in #execute.
#
# @return [Boolean]
attr_accessor :auto_refresh_token

##
# The application's API key issued by the API console.
#
# @return [String] The API key.
attr_accessor :key

##
# The IP address of the user this request is being performed on behalf of.
#
Expand Down

0 comments on commit 84ddf9b

Please sign in to comment.