Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options on initialization #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/foursquare.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
module Foursquare
class OAuth
def initialize(ctoken, csecret, options={})
@consumer_token, @consumer_secret = ctoken, csecret
@consumer_token, @consumer_secret , @options = ctoken, csecret ,options
end

def consumer
Expand All @@ -23,7 +23,7 @@ def consumer
:access_token_path => "/oauth/access_token",
:authorize_path => "/oauth/authorize",
:proxy => (ENV['HTTP_PROXY'] || ENV['http_proxy'])
})
}.merge(@options))
end

def set_callback_url(url)
Expand Down Expand Up @@ -224,4 +224,4 @@ class General < StandardError; end
class Unavailable < StandardError; end
class InternalError < StandardError; end
class NotFound < StandardError; end
end
end