Class: Iremix::Token
- Inherits:
-
Object
- Object
- Iremix::Token
- Defined in:
- lib/iremix/token.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
Instance Method Summary collapse
-
#initialize(auth_code, client) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(auth_code, client) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'lib/iremix/token.rb', line 5 def initialize(auth_code, client) @access_token = client.auth_code.get_token(auth_code, :redirect_url => Iremix.callback_url) end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/iremix/token.rb', line 3 def access_token @access_token end |