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
- #account ⇒ Object
- #auth_success? ⇒ Boolean
- #authenticated? ⇒ 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
#account ⇒ Object
10 11 12 |
# File 'lib/authenticator/client/authenticate_response.rb', line 10 def account Account.from_json(json) end |
#auth_success? ⇒ Boolean
18 19 20 |
# File 'lib/authenticator/client/authenticate_response.rb', line 18 def auth_success? authenticated? end |
#authenticated? ⇒ Boolean
14 15 16 |
# File 'lib/authenticator/client/authenticate_response.rb', line 14 def authenticated? json['authenticated'] == true end |