Class: YahooToken::YahooRequestToken

Inherits:
OAuth::RequestToken
  • Object
show all
Defined in:
lib/muck_oauth/services/yahoo_token.rb

Overview

We need to do some special handling to handle this strange parameter:

Instance Method Summary collapse

Constructor Details

#initialize(real_token) ⇒ YahooRequestToken

Returns a new instance of YahooRequestToken.



29
30
31
32
# File 'lib/muck_oauth/services/yahoo_token.rb', line 29

def initialize(real_token)
  super real_token.consumer, real_token.token, real_token.secret
  @params = real_token.params
end

Instance Method Details

#authorize_url(params = nil) ⇒ Object

handle xoauth_request_auth_url



35
36
37
38
39
40
41
# File 'lib/muck_oauth/services/yahoo_token.rb', line 35

def authorize_url(params = nil)
  if @params[:xoauth_request_auth_url]
    return @params[:xoauth_request_auth_url]
  else
    super params
  end
end