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