Sha256: 5e0327763b20d709866842ace8f729f8aacb1b621e089f10086f296e57c81ec2

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

require 'agree2'
class Agree2Token < ConsumerToken
  def self.agree2_client
    @agree2_client||=Agree2::Client.new OAUTH_CREDENTIALS[:agree2][:key],OAUTH_CREDENTIALS[:agree2][:secret]
  end
  
  def self.consumer
    agree2_client.consumer
  end
  
  def client
    @client||=Agree2Token.agree2_client.user(:token=>token,:secret=>secret)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
pelle-oauth-plugin-0.3.5 lib/oauth/models/consumers/services/agree2_token.rb
oauth-plugin-0.3.5 lib/oauth/models/consumers/services/agree2_token.rb