- COPYRIGHT & LICENSE
Dezi::Admin::API::Response - Dezi administration API response
use Dezi::Admin::API::Response; my $resp = Dezi::Admin::API::Response->new( total => $total, results => $list, ); print $resp; # renders as JSON
Dezi::Admin::API::Response represents a JSON response to an API call.
Constructor. args should include params total and results.
Get/set success boolean.
Get/set total integer.
Get/set array ref of results.
Get/set hash ref of meta data. Format is what ExtJS expects.
Returns JSON representation of Response. All stringification actions are overloaded to call this method.
<karman at cpan.org>
Please report any bugs or feature requests to
bug-dezi-admin at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-Admin. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Copyright 2013 Peter Karman.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.