Skip to content

Commit

Permalink
Add require calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachery Moneypenny committed Jan 22, 2012
1 parent ca9adb9 commit 01637ce
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/fitgem/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
require 'fitgem/activities'
require 'fitgem/sleep'
require 'fitgem/water'
require 'fitgem/blood_pressure'
require 'fitgem/glucose'
require 'fitgem/heart_rate'
require 'fitgem/units'
require 'fitgem/foods'
require 'fitgem/friends'
Expand Down Expand Up @@ -32,7 +35,7 @@ class Client
# @example Set this using the {Fitgem::ApiUnitSystem}
# client.api_unit_system = Fitgem::ApiUnitSystem.UK
# @example May also be set in the constructor call
# client = Fitgem::Client {
# client = Fitgem::Client {
# :consumer_key => my_key,
# :consumer_secret => my_secret,
# :token => fitbit_oauth_token,
Expand Down Expand Up @@ -76,11 +79,11 @@ class Client
# client = Fitgem::Client.new { :consumer_key => my_key, :consumer_secret => my_secret }
#
# @example User has already authorized with fitbit, and we have a stored token/secret
# client = Fitgem::Client.new {
# :consumer_key => my_key,
# :consumer_secret => my_secret,
# :token => fitbit_oauth_token,
# :secret => fitbit_oauth_secret
# client = Fitgem::Client.new {
# :consumer_key => my_key,
# :consumer_secret => my_secret,
# :token => fitbit_oauth_token,
# :secret => fitbit_oauth_secret
# }
#
# @return [Client] A Fitgem::Client; may be in a logged-in state or
Expand Down Expand Up @@ -168,8 +171,8 @@ def authentication_request_token(opts={})
private

def consumer
@consumer ||= OAuth::Consumer.new(@consumer_key, @consumer_secret, {
:site => 'http://api.fitbit.com',
@consumer ||= OAuth::Consumer.new(@consumer_key, @consumer_secret, {
:site => 'http://api.fitbit.com',
:proxy => @proxy
})
end
Expand Down

0 comments on commit 01637ce

Please sign in to comment.