Class: FusionAuth::ClientResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/fusionauth/rest_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_responseObject

Returns the value of attribute error_response.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def error_response
  @error_response
end

#exceptionObject

Returns the value of attribute exception.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def exception
  @exception
end

#methodObject

Returns the value of attribute method.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def method
  @method
end

#requestObject

Returns the value of attribute request.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def request
  @request
end

#statusObject

Returns the value of attribute status.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def status
  @status
end

#success_responseObject

Returns the value of attribute success_response.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def success_response
  @success_response
end

#urlObject

Returns the value of attribute url.



324
325
326
# File 'lib/fusionauth/rest_client.rb', line 324

def url
  @url
end

Instance Method Details

#was_successfulObject



326
327
328
# File 'lib/fusionauth/rest_client.rb', line 326

def was_successful
  @status >= 200 && @status <= 299
end