Class: ProxyAuth::Connection
- Inherits:
-
Object
- Object
- ProxyAuth::Connection
- Defined in:
- lib/proxy_auth/connection.rb
Overview
Connects to proxy and gets service token
Instance Method Summary collapse
Instance Method Details
#service_token ⇒ Object
4 5 6 7 |
# File 'lib/proxy_auth/connection.rb', line 4 def service_token register_service @response && JSON.parse(@response.body)['token'] end |