Mattermost/V4/API/Object/Audit.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod n/a totaltotal 66.6% 12 / 18 CC 1 SCAR 4.7
CC
1
Cov
77%
_build_action
2.0
_build_extra_info
2.0
_build_session_id
2.0
CRAP 1.6
« Mattermost/V4/API/Object/Application.pm ↑ Summary Mattermost/V4/API/Resource/S3.pm »
1 package WebService::Mattermost::V4::API::Object::Audit;
2  
3 # ABSTRACT: An audit item.
4  
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use Types::Standard qw(Maybe Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 12 extends 'WebService::Mattermost::V4::API::Object';
9 12 with qw(
10 WebService::Mattermost::V4::API::Object::Role::BelongingToUser
11 WebService::Mattermost::V4::API::Object::Role::CreatedAt
12 WebService::Mattermost::V4::API::Object::Role::ID
13 );
14  
15 ################################################################################
16  
17 12 has [ qw(
18 action
19 extra_info
20 session_id
21 ) ] => (is => 'ro', isa => Str, lazy => 1, builder => 1);
22  
23 ################################################################################
24  
25 0 ▶sub _build_action { shift->raw_data->{action} }
Subroutine _build_action: not called CC=1 SCAR=6.9
26 0 ▶sub _build_extra_info { shift->raw_data->{extra_info} }
Subroutine _build_extra_info: not called CC=1 SCAR=6.9
27 0 ▶sub _build_session_id { shift->raw_data->{session_id} }
Subroutine _build_session_id: not called CC=1 SCAR=6.9
28  
29 ################################################################################
30  
31 12 1;
32  
33 __END__
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 WebService::Mattermost::V4::API::Object::Audit - An audit item.
42  
43 =head1 VERSION
44  
45 version 0.28
46  
47 =head1 DESCRIPTION
48  
49 Details a generic response from Mattermost.
50  
51 =head1 SEE ALSO
52  
53 =over 4
54  
55 =item L<WebService::Mattermost::V4::API::Object::Role::BelongingToUser>
56  
57 =item L<WebService::Mattermost::V4::API::Object::Role::CreatedAt>
58  
59 =item L<WebService::Mattermost::V4::API::Object::Role::ID>
60  
61 =back
62  
63 =head1 AUTHOR
64  
65 Mike Jones <mike@netsplit.org.uk>
66  
67 =head1 COPYRIGHT AND LICENSE
68  
69 This software is Copyright (c) 2020 by Mike Jones.
70  
71 This is free software, licensed under:
72  
73 The MIT (X11) License
74  
75 =cut
« Mattermost/V4/API/Object/Application.pm ↑ Summary Mattermost/V4/API/Resource/S3.pm »