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.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def error_response
  @error_response
end

#exceptionObject

Returns the value of attribute exception.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def exception
  @exception
end

#methodObject

Returns the value of attribute method.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def method
  @method
end

#requestObject

Returns the value of attribute request.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def request
  @request
end

#statusObject

Returns the value of attribute status.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def status
  @status
end

#success_responseObject

Returns the value of attribute success_response.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def success_response
  @success_response
end

#urlObject

Returns the value of attribute url.



309
310
311
# File 'lib/fusionauth/rest_client.rb', line 309

def url
  @url
end

Instance Method Details

#was_successfulObject



311
312
313
# File 'lib/fusionauth/rest_client.rb', line 311

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