- new()
-
Constructor for the Response object.
- raw()
-
Accessor for raw result data.
- code()
-
Accessor for the result code.
- as_list()
-
Assumes the Gnatsd payload response is a 'list' and parses it as so.
Returns: Anonymous array of list items.
NAME
Response.pm - A Gnats payload class.
VERSION
0.1
DESCRIPTION
For dealing with raw responses and error codes returned by Gnatsd. Enables an easier payload method.
SYNOPSIS
use Net::Gnats::Reponse;
# Compose payload via constructor
my $response = Net::Gnats::Response->new({ raw => $data,
code => $code});
# Compose disparately
my $response = Net::Gnats::Response->new;
$response->raw($data);
$response->code($code);
SUBROUTINES/METHODS
DIAGNOSTICS
None.
BUGS AND LIMITATIONS
None.
CONFIGURATION AND ENVIRONMENT
None.
DEPENDENCIES
None.
AUTHOR
Richard Elberger, riche@cpan.org
LICENSE AND COPYRIGHT
License: GPL V3
(c) 2014 Richard Elberger
None.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 7:
'=item' outside of any '=over'
- Around line 72:
You forgot a '=back' before '=head1'