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

#auth_success?Boolean

Returns:

  • (Boolean)


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

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