File Coverage

blib/lib/WebService/DigitalOcean/Role/Regions.pm
Criterion Covered Total %
statement 18 21 85.7
branch n/a
condition n/a
subroutine 6 7 85.7
pod 1 1 100.0
total 25 29 86.2


line stmt bran cond sub pod time code
1             package WebService::DigitalOcean::Role::Regions;
2             # ABSTRACT: Regions role for DigitalOcean WebService
3 2     2   913 use utf8;
  2         3  
  2         8  
4 2     2   57 use Moo::Role;
  2         3  
  2         12  
5 2     2   458 use feature 'state';
  2         2  
  2         135  
6 2     2   9 use Types::Standard qw/Object/;
  2         3  
  2         10  
7 2     2   669 use Type::Utils;
  2         3  
  2         10  
8 2     2   1983 use Type::Params qw/compile/;
  2         3  
  2         10  
9              
10             requires 'make_request';
11              
12             our $VERSION = '0.025'; # VERSION
13              
14             sub region_list {
15 0     0 1   state $check = compile(Object);
16 0           my ($self, $opts) = $check->(@_);
17              
18 0           return $self->make_request(GET => "/regions");
19             }
20              
21             1;
22              
23             __END__
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             WebService::DigitalOcean::Role::Regions - Regions role for DigitalOcean WebService
32              
33             =head1 VERSION
34              
35             version 0.025
36              
37             =head1 DESCRIPTION
38              
39             Implements the Regions resource.
40              
41             =head1 METHODS
42              
43             =head2 region_list
44              
45             See main documentation in L<WebService::DigitalOcean>.
46              
47             =head1 AUTHOR
48              
49             André Walker <andre@cpan.org>
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This software is Copyright (c) 2015 by André Walker.
54              
55             This is free software, licensed under:
56              
57             The GNU General Public License, Version 2, June 1991
58              
59             =cut