The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Gnip::Activity::Payload - represent the payload in a Gnip activity item

SYNOPSIS

    my $payload = Net::Gnip::Activity::Payload->new($body);
    $payload->raw($meta_data);

    $activity->payload($payload);
    my $payload = $activity->payload;

METHODS;

new <body> [opt[s]]

Create a new payload.

body [body]

Get or set the body of this payload.

raw [raw]

Get or set the raw of this payload.

parse <xml>

Takes a string of XML, parses it and returns a new, potentially populated payload

as_xml

Return this payload as xml