Skeleton bin/pt-agent and lib/Percona/WebAPI.

This commit is contained in:
Daniel Nichter
2012-12-24 11:24:53 -07:00
parent 9dcda101c9
commit 93416d4cb6
12 changed files with 5343 additions and 519 deletions

View File

@@ -0,0 +1,18 @@
package Percona::WebAPI::Representation::HashRef;
use Moose::Role;
sub as_hashref {
my ($self) = @_;
# Copy the object into a new hashref.
my $as_hashref = { %$self };
# Delete the links because they're just for client-side use
# and the caller should be sending this object, not getting it.
delete $as_hashref->{links};
return $as_hashref;
}
1;