;
use LWP::UserAgent;
use JSON;
use URI::Escape ();
# see http://www.pingdom.com/services/api-documentation-rest/
# use autodie;
# use MooseX::Params::Validate;
has '_json' => (
'is' =>
'ro',
'isa' => 'JSON',
'lazy' => 1,
'builder' => '_init_json',
);
has '_ua' => (
'is' => 'rw',
'isa' => 'LWP::UserAgent',
'lazy' => 1,
'builder' =>
nt('Pingdom::Client/0.01');
return $UA;
}
sub _init_json {
my $self = shift;
my $JSON = JSON::->new()->utf8();
return $JSON;
}
sub _set_lasterror {
my $self = shift;
my $c