From 84ddf9ba3cca1b4d48da5e828d32eb394dff3c4e Mon Sep 17 00:00:00 2001 From: Ryan Biesemeyer Date: Fri, 4 Jan 2013 21:50:19 +0000 Subject: [PATCH] incorporate style feedback from @sporkmonger on ab23fe7539ac --- lib/google/api_client.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/google/api_client.rb b/lib/google/api_client.rb index 870dd3838..b1962cdbd 100644 --- a/lib/google/api_client.rb +++ b/lib/google/api_client.rb @@ -93,7 +93,7 @@ module Google # 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 = {} @@ -158,12 +158,6 @@ module Google 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. @@ -171,6 +165,12 @@ module Google # @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. #