File Coverage

blib/lib/WebService/Mattermost/V4/API/Object/ChannelStats.pm
Criterion Covered Total %
statement 6 7 85.7
branch n/a
condition n/a
subroutine 2 3 66.6
pod n/a
total 8 10 80.0


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

3: # ABSTRACT: A channel stats item. 4:
5: use Moo;
6: use Types::Standard qw(Int Maybe);
7:
8: extends 'WebService::Mattermost::V4::API::Object';
9: with qw(
10: WebService::Mattermost::V4::API::Object::Role::BelongingToChannel
11: );
12:
13: ################################################################################
14:
15: has member_count => (is => 'ro', isa => Maybe[Int], lazy => 1, builder => 1);
16:
17: ################################################################################
18:
19: sub _build_member_count { shift->raw_data->{member_count} }
20:
21: ################################################################################
22:
23: 1;
24:
25: __END__
26:
27: =pod
28:
29: =encoding UTF-8
30:
31: =head1 NAME
32:
33: WebService::Mattermost::V4::API::Object::ChannelStats - A channel stats item.
34:
35: =head1 VERSION
36:
37: version 0.28
38:
39: =head1 DESCRIPTION
40:
41: Details a Mattermost ChannelStats object.
42:
43: =head2 ATTRIBUTES
44:
45: =over 4
46:
47: =item C<total_member_count>
48:
49: =item C<active_member_count>
50:
51: =back
52:
53: =head1 SEE ALSO
54:
55: =over 4
56:
57: =item L<WebService::Mattermost::V4::API::Object::Role::BelongingToChannel>
58:
59: =back
60:
61: =head1 AUTHOR
62:
63: Mike Jones <mike@netsplit.org.uk>
64:
65: =head1 COPYRIGHT AND LICENSE
66:
67: This software is Copyright (c) 2020 by Mike Jones.
68:
69: This is free software, licensed under:
70:
71: The MIT (X11) License
72:
73: =cut
74: