Class: Authenticator::Client::AuthenticateResponse

Inherits:
JsonClient::BaseResponses::Response
  • Object
show all
Defined in:
lib/authenticator/client/authenticate_response.rb

Instance Method Summary collapse

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

#accountObject



10
11
12
# File 'lib/authenticator/client/authenticate_response.rb', line 10

def 
  .from_json(json)
end

#auth_success?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/authenticator/client/authenticate_response.rb', line 18

def auth_success?
  authenticated?
end

#authenticated?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/authenticator/client/authenticate_response.rb', line 14

def authenticated?
  json['authenticated'] == true
end