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.
324 325 326 |
# File 'lib/fusionauth/rest_client.rb', line 324 def error_response @error_response end |
#exception ⇒ Object
Returns the value of attribute exception.
324 325 326 |
# File 'lib/fusionauth/rest_client.rb', line 324 def exception @exception end |
#method ⇒ Object
Returns the value of attribute method.
324 325 326 |
# File 'lib/fusionauth/rest_client.rb', line 324 def method @method end |
#request ⇒ Object
Returns the value of attribute request.
324 325 326 |
# File 'lib/fusionauth/rest_client.rb', line 324 def request @request end |
#status ⇒ Object
Returns the value of attribute status.
324 325 326 |
# File 'lib/fusionauth/rest_client.rb', line 324 def status @status end |
#success_response ⇒ Object
Returns the value of attribute success_response.
324 325 326 |
# File 'lib/fusionauth/rest_client.rb', line 324 def success_response @success_response end |
#url ⇒ Object
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_successful ⇒ Object
326 327 328 |
# File 'lib/fusionauth/rest_client.rb', line 326 def was_successful @status >= 200 && @status <= 299 end |