Mattermost/V4/API/Role/NewRelatedResource.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 93.3% 14 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new_related_resource
1.0
CRAP 1.0
« Mattermost/V4/API.pm ↑ Summary Mattermost/Helper/Alias.pm »
1 package WebService::Mattermost::V4::API::Role::NewRelatedResource;
2  
3 12 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 12 ▶use WebService::Mattermost::Helper::Alias 'v4';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 ################################################################################
8  
9 sub new_related_resource {
10 1 ▶ my $self = shift;
Subroutine new_related_resource: called CC=1 SCAR=0.0
Pod undocumented
11 1 my $base = shift;
12 1 my $resource = shift;
13  
14 1 return v4($resource)->new({
15 api => $self->api,
16 auth_token => $self->auth_token,
17 base_url => $self->base_url,
18 resource => $base,
19 });
20 }
21  
22 ################################################################################
23  
24 12 1;
25  
26 __END__
27  
28 =pod
29  
30 =encoding UTF-8
31  
32 =head1 NAME
33  
34 WebService::Mattermost::V4::API::Role::NewRelatedResource
35  
36 =head1 VERSION
37  
38 version 0.28
39  
40 =head1 AUTHOR
41  
42 Mike Jones <mike@netsplit.org.uk>
43  
44 =head1 COPYRIGHT AND LICENSE
45  
46 This software is Copyright (c) 2020 by Mike Jones.
47  
48 This is free software, licensed under:
49  
50 The MIT (X11) License
51  
52 =cut
« Mattermost/V4/API.pm ↑ Summary Mattermost/Helper/Alias.pm »