Class: Agree2Token
- Inherits:
-
ConsumerToken
- Object
- ConsumerToken
- Agree2Token
- Defined in:
- lib/oauth/models/consumers/services/agree2_token.rb
Constant Summary collapse
- AGREE2_SETTINGS =
{:site=>"https://agree2.com"}
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.agree2_client ⇒ Object
8 9 10 |
# File 'lib/oauth/models/consumers/services/agree2_token.rb', line 8 def self.agree2_client @agree2_client||=Agree2::Client.new credentials[:key],credentials[:secret] end |
.consumer ⇒ Object
4 5 6 |
# File 'lib/oauth/models/consumers/services/agree2_token.rb', line 4 def self.consumer @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],AGREE2_SETTINGS end |
Instance Method Details
#client ⇒ Object
12 13 14 |
# File 'lib/oauth/models/consumers/services/agree2_token.rb', line 12 def client @client||=Agree2Token.agree2_client.user(token,secret) end |