incorporate style feedback from @sporkmonger on ab23fe7539
This commit is contained in:
parent
ab23fe7539
commit
84ddf9ba3c
|
@ -93,7 +93,7 @@ module Google
|
||||||
# default authentication mechanisms.
|
# default authentication mechanisms.
|
||||||
self.authorization =
|
self.authorization =
|
||||||
options.key?(:authorization) ? options[:authorization] : :oauth_2
|
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.key = options[:key]
|
||||||
self.user_ip = options[:user_ip]
|
self.user_ip = options[:user_ip]
|
||||||
@discovery_uris = {}
|
@discovery_uris = {}
|
||||||
|
@ -158,12 +158,6 @@ module Google
|
||||||
return @authorization
|
return @authorization
|
||||||
end
|
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
|
# The setting that controls whether or not the api client attempts to
|
||||||
# refresh authorization when a 401 is hit in #execute.
|
# refresh authorization when a 401 is hit in #execute.
|
||||||
|
@ -171,6 +165,12 @@ module Google
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :auto_refresh_token
|
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.
|
# The IP address of the user this request is being performed on behalf of.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue