Class: Agree2Token
Constant Summary
collapse
- AGREE2_SETTINGS =
{:site=>"https://agree2.com"}
Class Method Summary
collapse
Instance Method Summary
collapse
find_or_create_from_access_token
included
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
|