blib/lib/WebService/Mattermost/V4/API/Object/TeamStats.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 8 | 75.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 4 | 50.0 |
pod | n/a | ||
total | 8 | 12 | 66.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package WebService::Mattermost::V4::API::Object::TeamStats; 2: 3: # ABSTRACT: Stats for a team. 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::BelongingToTeam 11: ); 12: 13: ################################################################################ 14: 15: has [ qw( 16: active_member_count 17: total_member_count 18: ) ] => (is => 'ro', isa => Maybe[Int], lazy => 1, builder => 1); 19: 20: ################################################################################ 21: 22: sub _build_active_member_count { shift->raw_data->{active_member_count} } 23: sub _build_total_member_count { shift->raw_data->{total_member_count} } 24: 25: ################################################################################ 26: 27: 1; 28: 29: __END__ 30: 31: =pod 32: 33: =encoding UTF-8 34: 35: =head1 NAME 36: 37: WebService::Mattermost::V4::API::Object::TeamStats - Stats for a team. 38: 39: =head1 VERSION 40: 41: version 0.28 42: 43: =head1 DESCRIPTION 44: 45: Details a Mattermost TeamStats object. 46: 47: =head2 ATTRIBUTES 48: 49: =over 4 50: 51: =item C<total_member_count> 52: 53: =item C<active_member_count> 54: 55: =back 56: 57: =head1 SEE ALSO 58: 59: =over 4 60: 61: =item L<WebService::Mattermost::V4::API::Object::Role::BelongingToUser> 62: 63: =item L<WebService::Mattermost::V4::API::Object::Role::BelongingToTeam> 64: 65: =back 66: 67: =head1 AUTHOR 68: 69: Mike Jones <mike@netsplit.org.uk> 70: 71: =head1 COPYRIGHT AND LICENSE 72: 73: This software is Copyright (c) 2020 by Mike Jones. 74: 75: This is free software, licensed under: 76: 77: The MIT (X11) License 78: 79: =cut 80: |