Class: FusionAuth::ClientResponse
- Inherits:
-
Object
- Object
- FusionAuth::ClientResponse
- Defined in:
- lib/fusionauth/rest_client.rb
Instance Attribute Summary collapse
-
#error_response ⇒ Object
Returns the value of attribute error_response.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#method ⇒ Object
Returns the value of attribute method.
-
#request ⇒ Object
Returns the value of attribute request.
-
#status ⇒ Object
Returns the value of attribute status.
-
#success_response ⇒ Object
Returns the value of attribute success_response.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#error_response ⇒ Object
Returns the value of attribute error_response.
295 296 297 |
# File 'lib/fusionauth/rest_client.rb', line 295 def error_response @error_response end |
#exception ⇒ Object
Returns the value of attribute exception.
295 296 297 |
# File 'lib/fusionauth/rest_client.rb', line 295 def exception @exception end |
#method ⇒ Object
Returns the value of attribute method.
295 296 297 |
# File 'lib/fusionauth/rest_client.rb', line 295 def method @method end |
#request ⇒ Object
Returns the value of attribute request.
295 296 297 |
# File 'lib/fusionauth/rest_client.rb', line 295 def request @request end |
#status ⇒ Object
Returns the value of attribute status.
295 296 297 |
# File 'lib/fusionauth/rest_client.rb', line 295 def status @status end |
#success_response ⇒ Object
Returns the value of attribute success_response.
295 296 297 |
# File 'lib/fusionauth/rest_client.rb', line 295 def success_response @success_response end |
#url ⇒ Object
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_successful ⇒ Object
297 298 299 |
# File 'lib/fusionauth/rest_client.rb', line 297 def was_successful @status >= 200 && @status <= 299 end |