NAME

Net::FreeIPA::Response is an response class for Net::FreeIPA.

Boolean logic is overloaded using _boolean method (as inverse of is_error).

Public methods

mkresponse

A Net::FreeIPA::Response factory

new

Create new response instance.

Options

answer: complete answer hashref
error: an error (passed to mkerror).
result_path: passed to set_result to set the result attribute.
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 path-like string, indicating which subtree of the answer should be set as result attribute (default result/result).

is_error

Test if this is an error or not (based on error attribute).