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::Responsefactory - 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_pathis either - result
-
Return the result attribute.
If
result_pathis passed (and defined), (re)set the result attribute first. (The default result path cannot be (re)set this way. Useset_resultmethod for that). - is_error
-
Test if this is an error or not (based on error attribute).