Class: Noti::Token
- Inherits:
-
Object
- Object
- Noti::Token
- Defined in:
- lib/noti/token.rb
Instance Attribute Summary collapse
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#request_token ⇒ Object
Returns the value of attribute request_token.
Class Method Summary collapse
Instance Attribute Details
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
4 5 6 |
# File 'lib/noti/token.rb', line 4 def redirect_url @redirect_url end |
#request_token ⇒ Object
Returns the value of attribute request_token.
4 5 6 |
# File 'lib/noti/token.rb', line 4 def request_token @request_token end |
Class Method Details
.create_request_token(redirect_url) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/noti/token.rb', line 6 def self.create_request_token(redirect_url) request = Noti::Request.request("request_access", :app => Noti.app, :redirect_url => redirect_url) token = self.new token.request_token = request['request_token'] token.redirect_url = request['redirect_url'] token end |