Mattermost/V4/API/Object/Compliance/Report.pm

filter: Statementstmt 40.0% 12 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 2 / 10 Podpod 0.0% 0 / 1 totaltotal 34.1% 14 / 41 CC 1 SCAR 5.9
CC
1
Cov
40%
BUILD
2.0
_build_count
2.0
_build_start_at
2.0
CRAP 1.8
« Mattermost/V4/API/Resource/File.pm ↑ Summary Mattermost/V4/API/Object/Job.pm »
1 package WebService::Mattermost::V4::API::Object::Compliance::Report;
2  
3 # ABSTRACT: A compliance report item.
4  
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use Types::Standard qw(Str InstanceOf Int Maybe);
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::APIMethods
11 WebService::Mattermost::V4::API::Object::Role::ID
12 WebService::Mattermost::V4::API::Object::Role::Status
13 WebService::Mattermost::V4::API::Object::Role::CreatedAt
14 WebService::Mattermost::V4::API::Object::Role::BelongingToUser
15 );
16  
17 ################################################################################
18  
19 12 has [ qw(count start_at end_at) ] => (is => 'ro', isa => Maybe[Int], lazy => 1, builder => 1);
20 12 has [ qw(desc type keywords emails) ] => (is => 'ro', isa => Maybe[Str], lazy => 1, builder => 1);
21  
22 12 has [ qw(
23 started_at
24 ended_at
25 ) ] => (is => 'ro', isa => Maybe[InstanceOf['DateTime']], lazy => 1, builder => 1);
26  
27 ################################################################################
28  
29 sub BUILD {
30 0 ▶ my $self = shift;
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
31  
32 0 $self->api_resource_name('compliance_report');
33 0 $self->set_available_api_methods([ 'download' ]);
34  
35 0 return 1;
36 }
37  
38 ################################################################################
39  
40 sub _build_count {
41 0 ▶ my $self = shift;
Subroutine _build_count: not called CC=1 SCAR=6.9
42  
43 0 return $self->raw_data->{count};
44 }
45  
46 sub _build_start_at {
47 0 ▶ my $self = shift;
Subroutine _build_start_at: not called CC=1 SCAR=6.9
48  
49 0 return $self->raw_data->{start_at};
50 }
51  
52 sub _build_end_at {
53 0 ▶ my $self = shift;
Subroutine _build_end_at: not called CC=1 SCAR=6.9
54  
55 0 return $self->raw_data->{end_at};
56 }
57  
58 sub _build_desc {
59 0 ▶ my $self = shift;
Subroutine _build_desc: not called CC=1 SCAR=6.9
60  
61 0 return $self->raw_data->{desc};
62 }
63  
64 sub _build_type {
65 0 ▶ my $self = shift;
Subroutine _build_type: not called CC=1 SCAR=6.9
66  
67 0 return $self->raw_data->{type};
68 }
69  
70 sub _build_keywords {
71 0 ▶ my $self = shift;
Subroutine _build_keywords: not called CC=1 SCAR=6.9
72  
73 0 return $self->raw_data->{keywords};
74 }
75  
76 sub _build_emails {
77 0 ▶ my $self = shift;
Subroutine _build_emails: not called CC=1 SCAR=6.9
78  
79 0 return $self->raw_data->{emails};
80 }
81  
82 ################################################################################
83  
84 12 1;
85  
86 __END__
87  
88 =pod
89  
90 =encoding UTF-8
91  
92 =head1 NAME
93  
94 WebService::Mattermost::V4::API::Object::Compliance::Report - A compliance report item.
95  
96 =head1 VERSION
97  
98 version 0.28
99  
100 =head1 DESCRIPTION
101  
102 See matching methods in L<WebService::Mattermost::V4::API::Resource::Compliance::Report>
103 for full documentation.
104  
105 ID parameters are not required:
106  
107 my $response = $mattermost->api->compliance_report->get('ID-HERE')->item->download();
108  
109 Is the same as:
110  
111 my $response = $mattermost->api->compliance_report->download('ID-HERE');
112  
113 =head2 ATTRIBUTES
114  
115 =over 4
116  
117 =item C<count>
118  
119 =item C<start_at>
120  
121 =item C<end_at>
122  
123 =item C<desc>
124  
125 =item C<type>
126  
127 =item C<keywords>
128  
129 =item C<emails>
130  
131 =item C<started_at>
132  
133 =item C<ended_at>
134  
135 =back
136  
137 =head1 SEE ALSO
138  
139 =over 4
140  
141 =item L<WebService::Mattermost::V4::API::Resource::Compliance::Report>
142  
143 =item L<WebService::Mattermost::V4::API::Object::Role::ID>
144  
145 =item L<WebService::Mattermost::V4::API::Object::Role::Status>
146  
147 =item L<WebService::Mattermost::V4::API::Object::Role::CreatedAt>
148  
149 =item L<WebService::Mattermost::V4::API::Object::Role::BelongingToUser>
150  
151 =back
152  
153 =head1 AUTHOR
154  
155 Mike Jones <mike@netsplit.org.uk>
156  
157 =head1 COPYRIGHT AND LICENSE
158  
159 This software is Copyright (c) 2020 by Mike Jones.
160  
161 This is free software, licensed under:
162  
163 The MIT (X11) License
164  
165 =cut
« Mattermost/V4/API/Resource/File.pm ↑ Summary Mattermost/V4/API/Object/Job.pm »