Class: OauthChina::Douban
- Defined in:
- lib/oauth_china/strategies/douban.rb
Constant Summary
Constants inherited from OAuth
Instance Attribute Summary
Attributes inherited from OAuth
#access_token, #consumer_options, #request_token
Instance Method Summary collapse
- #authorized? ⇒ Boolean
- #destroy ⇒ Object
-
#initialize(*args) ⇒ Douban
constructor
A new instance of Douban.
- #name ⇒ Object
Methods inherited from OAuth
#authorize, #authorize_url, #callback, #config, #consumer, #dump, #key, load, #oauth_token, #secret, #url
Constructor Details
#initialize(*args) ⇒ Douban
Returns a new instance of Douban.
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/oauth_china/strategies/douban.rb', line 4 def initialize(*args) self. = { :signature_method => "HMAC-SHA1", :site => "http://www.douban.com", :scheme => :header, :request_token_path => '/service/auth/request_token', :access_token_path => '/service/auth/access_token', :authorize_path => '/service/auth/authorize', :realm => url } super(*args) end |
Instance Method Details
#authorized? ⇒ Boolean
21 22 23 |
# File 'lib/oauth_china/strategies/douban.rb', line 21 def #TODO end |
#destroy ⇒ Object
25 26 27 |
# File 'lib/oauth_china/strategies/douban.rb', line 25 def destroy #TODO end |
#name ⇒ Object
17 18 19 |
# File 'lib/oauth_china/strategies/douban.rb', line 17 def name :douban end |