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

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

Create a new payload.
Get or set the body of this payload.
Get or set the raw of this payload.
Takes a string of XML, parses it and returns a new, potentially populated payload
Return this payload as xml