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.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def error_response
  @error_response
end

#exceptionObject

Returns the value of attribute exception.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def exception
  @exception
end

#methodObject

Returns the value of attribute method.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def method
  @method
end

#requestObject

Returns the value of attribute request.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def request
  @request
end

#statusObject

Returns the value of attribute status.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def status
  @status
end

#success_responseObject

Returns the value of attribute success_response.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def success_response
  @success_response
end

#urlObject

Returns the value of attribute url.



295
296
297
# File 'lib/fusionauth/rest_client.rb', line 295

def url
  @url
end

Instance Method Details

#was_successfulObject



297
298
299
# File 'lib/fusionauth/rest_client.rb', line 297

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