File Coverage

blib/lib/WebService/Mattermost/V4/API/Object/Audit.pm
Criterion Covered Total %
statement 6 9 66.6
branch n/a
condition n/a
subroutine 2 5 40.0
pod n/a
total 8 14 57.1


line stmt bran cond sub pod time code
1             package WebService::Mattermost::V4::API::Object::Audit;
2:

3: # ABSTRACT: An audit item. 4:
5: use Moo;
6: use Types::Standard qw(Maybe Str);
7:
8: extends 'WebService::Mattermost::V4::API::Object';
9: 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: has [ qw(
18: action
19: extra_info
20: session_id
21: ) ] => (is => 'ro', isa => Str, lazy => 1, builder => 1);
22:
23: ################################################################################
24:
25: sub _build_action { shift->raw_data->{action} }
26: sub _build_extra_info { shift->raw_data->{extra_info} }
27: sub _build_session_id { shift->raw_data->{session_id} }
28:
29: ################################################################################
30:
31: 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
76: