Method: RTX::API::Client#logout
- Defined in:
- lib/rtx/api/client.rb
#logout ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/rtx/api/client.rb', line 30 def logout if token request = self.class.delete("#{rtx_api_url}/auth", (:delete)) if request.code != 204 raise API::Errors::AuthenticationError.new("Authentication Logout Error: #{response}") end @token, @expires, @account_id, @profile_id = nil, nil, nil, nil end end |