Auth0/Management/Role/Search.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%
search
2.0
BEGIN
1.0
CRAP 1.5
« Auth0/Management/Role/Get.pm ↑ Summary Auth0/Management/Role/Update.pm »
1 package WebService::Auth0::Management::Role::Search;
2  
3 2 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 requires 'GET', 'uri_for';
6  
7 0 ▶sub search {
Subroutine search: not called CC=1 SCAR=6.9
Pod documented
8 0 my ($self, $query) = @_;
9 0 return $self->GET($self->uri_for($query));
10 }
11  
12  
13 2 1;
14  
15 =head1 NAME
16  
17 WebService::Auth0::Management::Role::Search - Role that provides a 'search' 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::Search';
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 search (\%params)
43  
44 Seach all items for 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 2 1;
62  
« Auth0/Management/Role/Get.pm ↑ Summary Auth0/Management/Role/Update.pm »