Auth0/Management/Role/All.pm

filter: Statementstmt 75.0% 6 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 72.7% 8 / 11 CC 1 SCAR 4.1
CC
1
Cov
75%
all
2.0
BEGIN
1.0
CRAP 1.5
« Auth0/Management/Tickets.pm ↑ Summary Auth0/Management/Role/Create.pm »
1 package WebService::Auth0::Management::Role::All;
2  
3 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 requires 'GET', 'uri_for';
6  
7 0 ▶sub all {
Subroutine all: not called CC=1 SCAR=6.9
Pod documented
8 0 my ($self) = @_;
9 0 return $self->GET($self->uri_for(+{}));
10 }
11  
12  
13 1 1;
14  
15 =head1 NAME
16  
17 WebService::Auth0::Management::Role::All - Role that provides a 'all' API method
18  
19 =head1 SYNOPSIS
20  
21 package WebService::Auth0::Management::Users;
22  
23 use Moo;
24 extends 'WebService::Auth0::Management::Base';
25  
26 with 'WebService::Auth0::Management::Role::All';
27  
28 sub path_suffix { 'users' }
29  
30 # Other custom methods for the Endpoint
31  
32 1;
33  
34 =head1 DESCRIPTION
35  
36 Helper role
37  
38 =head1 METHODS
39  
40 This class defines the following methods:
41  
42 =head2 all
43  
44 Gets all the items on the endpoint
45  
46 =head1 SEE ALSO
47
48 L<WebService::Auth0>, L<https://auth0.com>.
49 L<WebService::Auth0::Management::Base>
50  
51 =head1 AUTHOR
52
53 See L<WebService::Auth0>
54
55 =head1 COPYRIGHT & LICENSE
56
57 See L<WebService::Auth0>
58  
59 =cut
60  
61 1 1;
« Auth0/Management/Tickets.pm ↑ Summary Auth0/Management/Role/Create.pm »