Class: Bcx::Client::OAuth
- Inherits:
-
Rapidash::Client
- Object
- Rapidash::Client
- Bcx::Client::OAuth
- Defined in:
- lib/bcx/client/oauth.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ OAuth
constructor
A new instance of OAuth.
Constructor Details
#initialize(options = {}) ⇒ OAuth
Returns a new instance of OAuth.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/bcx/client/oauth.rb', line 23 def initialize( = {}) @account = [:account] || Bcx.configuration.account @api_version = Bcx.configuration.api_version [:site] = "https://basecamp.com/#{@account}/api/#{@api_version}" [:uid] ||= [:client_id] [:secret] ||= [:client_secret] super() end |