Mattermost/V4/API/Object/User/Status.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 75.0% 12 / 16 CC 2 SCAR 12.5
CC
2
Cov
77%
_build_manual
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« Mattermost/V4/API/Object/Plugins.pm ↑ Summary Mattermost/Helper/Table.pm »
1 package WebService::Mattermost::V4::API::Object::User::Status;
2  
3 # ABSTRACT: A user status item.
4  
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use Types::Standard qw(Maybe Bool);
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::BelongingToUser
11 WebService::Mattermost::V4::API::Object::Role::LastActivityAt
12 WebService::Mattermost::V4::API::Object::Role::Status
13 );
14  
15 ################################################################################
16  
17 12 has manual => (is => 'ro', isa => Maybe[Bool], lazy => 1, builder => 1);
18  
19 ################################################################################
20  
21 sub _build_manual {
22 0 ▶ return shift->raw_data->{manual} ? 1 : 0;
Subroutine _build_manual: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
+(shift())->raw_data->{'manual'} ? : 0 0 0
23 }
24  
25 ################################################################################
26  
27 12 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
« Mattermost/V4/API/Object/Plugins.pm ↑ Summary Mattermost/Helper/Table.pm »