Class: Mashape::OAuthAuthentication

Inherits:
Authentication show all
Defined in:
lib/authentication/oauth_authentication.rb

Direct Known Subclasses

OAuth10aAuthentication, OAuth2Authentication

Instance Method Summary collapse

Methods inherited from Authentication

#handleHeader, #handleParams

Constructor Details

#initialize(consumer_key, consumer_secret, callback_url) ⇒ OAuthAuthentication

Returns a new instance of OAuthAuthentication.



6
7
8
9
10
11
# File 'lib/authentication/oauth_authentication.rb', line 6

def initialize(consumer_key, consumer_secret, callback_url)
  super()
  @params[:consumer_key] = consumer_key
  @params[:consumer_secret] = consumer_secret
  @params[:callback_url] = callback_url
end