Skip to content
Browse files

Merge pull request #20 from simplymeasured/feature/make-autorefresh-o…

…f-token-optional

incorporate style feedback from @sporkmonger on #19 ab23fe7
  • Loading branch information...
2 parents 361c8cc + 84ddf9b commit ee6f8ae6f983f2beb1afa94f9332f9e244fbbb9d @sqrrrl sqrrrl committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/google/api_client.rb
View
14 lib/google/api_client.rb
@@ -101,7 +101,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 = {}
@@ -168,12 +168,6 @@ def authorization=(new_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.
#
@@ -181,6 +175,12 @@ def authorization=(new_authorization)
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.
#
# @return [String] The user's IP address.

0 comments on commit ee6f8ae

Please sign in to comment.
Something went wrong with that request. Please try again.