
WebService::UPS::Activity - Object to Represent a particular tracked event in the package's adventure

my $Package = WebService::UPS::TrackRequest->new;
$Package->Username('kbrandt');
$Package->Password('topsecrent');
$Package->License('8C3D7EE8FZZZZZ4');
$Package->TrackingNumber('1ZA45Y5111111111');
print $Package->Username();
my $trackedpackage = $Package->requestTrack();
my $activity = $trackedpackage->getActivity(0);
print $activity->getTime();

WebService::UPS::Activity->new( _activity_hash => $object->getActiviy(0));
The constructor method that creates a new Activity object. You probably should not be calling this directly as above, rather it should returned from the WebService::UPS::TrackedPackage Object
You shouldn't be messing with it in general. But if you dump it with dumper, and you are clever, you might be able to access things that my module doesn't have getters for.
$activity->getTime()
Returns the time as a string, I will leave it up to you to make it into a datetime object.
$activity->getAddress()
Returns an address object which represents the location of the activity
$activity->getDescription()
returns a string that describes the action for this activity entry, for example 'OUT FOR DELIVERY'
$activity->getDate()
Returns String, like 052297

Kyle Brandt, kyle@kbrandt.com http://www.kbrandt.com