NAME
Net::OpenStack::Client::Response is an response class for Net::OpenStack.
Boolean logic is overloaded using _boolean
method (as inverse of is_error
).
Public methods
- mkresponse
-
A
Net::OpenStack::Client::Response
factory - new
-
Create new response instance.
Options
- set_error
-
Set and return the error attribute using
mkerror
. - set_result
-
Set and return the result attribute based on the
result_path
.The
result_path
is either - result
-
Return the result attribute.
If
result_path
is passed (and defined), (re)set the result attribute first. (The default result path cannot be (re)set this way. Useset_result
method for that). - is_error
-
Test if this is an error or not (based on error attribute).