Class: RTM::Auth::CheckToken
- Defined in:
- lib/rtmilk/api/auth.rb
Overview
GetToken
Instance Method Summary collapse
-
#initialize(token) ⇒ CheckToken
constructor
A new instance of CheckToken.
-
#parse_result(result) ⇒ Object
return :perms, :user => {id, name, fullname}.
Methods inherited from RTM::API
#api_host, auth_host, get_auth_url, init, #invoke, key, #sign, token, token=
Constructor Details
#initialize(token) ⇒ CheckToken
Returns a new instance of CheckToken.
39 40 41 42 |
# File 'lib/rtmilk/api/auth.rb', line 39 def initialize(token) super 'rtm.auth.checkToken' @param = {:auth_token => token} end |
Instance Method Details
#parse_result(result) ⇒ Object
return :perms, :user => {id, name, fullname}
34 35 36 37 |
# File 'lib/rtmilk/api/auth.rb', line 34 def parse_result(result) super Auth.parse_result_auth(result) end |