This will display something useful iff it [the object being dumped] is not based on an OO implementation that hides the actual class/instance data e.g. Object::InsideOut or (I strongly suspect) Moose.
As it happens, RT::Client::REST bears the hallmarks of having been written using traditional, hand-cranked, hash-based perl objects.
A user level that continues to overstate my experience :-))
| [reply] |
sub dump {
my $self = shift;
require Data::Dumper;
local $Data::Dumper::Maxdepth = shift if @_;
Data::Dumper::Dumper $self;
}
1;
| [reply] [d/l] |
| [reply] |
I did use data Dumper on it and Maxdepth didn't reveal anything extra. here is what the dump is showing:
$VAR1 = {
'TimeEstimated' => '',
'Status' => 'open',
'Queue' => 'q1',
'AdminCc' => '',
'Requestors' => 'log@log.com',
'Started' => 'Thu Feb 19 1:02:58 2009',
'InitialPriority' => '40',
'Starts' => 'Not set',
'TimeWorked' => '',
'id' => 'ticket/2',
'Told' => 'Not set',
'Cc' => '',
'Subject' => 'test ticket',
'FinalPriority' => '90',
'TimeLeft' => '',
'Creator' => 'guy',
'Owner' => 'guy',
'Resolved' => 'Not set',
'Created' => 'Tue Feb 17 13:22:11 2009',
'Priority' => '42',
'Due' => 'Not set'
}
| [reply] |