blib/lib/WebService/Mattermost/V4/API/Object/User/Status.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 7 | 85.7 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 2 | 3 | 66.6 |
pod | n/a | ||
total | 8 | 12 | 66.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package WebService::Mattermost::V4::API::Object::User::Status; 2: 3: # ABSTRACT: A user status item. 4: 5: use Moo; 6: use Types::Standard qw(Maybe Bool); 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::LastActivityAt 12: WebService::Mattermost::V4::API::Object::Role::Status 13: ); 14: 15: ################################################################################ 16: 17: has manual => (is => 'ro', isa => Maybe[Bool], lazy => 1, builder => 1); 18: 19: ################################################################################ 20: 21: sub _build_manual { 22: return shift->raw_data->{manual} ? 1 : 0; 23: } 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::User::Status - A user status item. 38: 39: =head1 VERSION 40: 41: version 0.28 42: 43: =head1 DESCRIPTION 44: 45: Describe's a User's status. 46: 47: =head2 ATTRIBUTES 48: 49: =over 4 50: 51: =item C<manual> 52: 53: Was the status set manually? 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::LastActivityAt> 64: 65: =item L<WebService::Mattermost::V4::API::Object::Role::Status> 66: 67: =back 68: 69: =head1 AUTHOR 70: 71: Mike Jones <mike@netsplit.org.uk> 72: 73: =head1 COPYRIGHT AND LICENSE 74: 75: This software is Copyright (c) 2020 by Mike Jones. 76: 77: This is free software, licensed under: 78: 79: The MIT (X11) License 80: 81: =cut 82: |