ngs;
use Carp qw(croak);
use 5.008008;
our $VERSION = '0.03';
use URI;
use URI::QueryParam;
use JSON ();
use LWP::UserAgent;
sub new {
my ($class, %args) = @_;
croak 'Both `base_url` and `
$self->dispatch_request('get', '/api/services.json');
}
sub roles {
my $self = shift;
$self->dispatch_request('get', '/api/roles.json');
}
sub roles_in {
my ($self, $service) = @
('get', "/api/services/${service}/roles.json");
}
sub hosts {
my ($self, %options) = @_;
my $response = $self->dispatch_request('get', '/api/hosts.json');
[
grep {
if