Class: Authenticator::Client::AuthenticateResponse
- Inherits:
-
JsonClient::BaseResponses::Response
- Object
- JsonClient::BaseResponses::Response
- Authenticator::Client::AuthenticateResponse
- Defined in:
- lib/authenticator/client/authenticate_response.rb
Instance Method Summary collapse
- #auth_success? ⇒ Boolean
-
#initialize(body, code) ⇒ AuthenticateResponse
constructor
A new instance of AuthenticateResponse.
Constructor Details
#initialize(body, code) ⇒ AuthenticateResponse
Returns a new instance of AuthenticateResponse.
6 7 8 |
# File 'lib/authenticator/client/authenticate_response.rb', line 6 def initialize(body, code) super end |
Instance Method Details
#auth_success? ⇒ Boolean
10 11 12 |
# File 'lib/authenticator/client/authenticate_response.rb', line 10 def auth_success? json['authenticated'] == true end |