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

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod n/a totaltotal 75.0% 12 / 16 CC 1 SCAR 4.1
CC
1
Cov
83%
_build_category
2.0
_build_value
2.0
BEGIN
1.0
CRAP 1.5
« Mattermost/V4/API/Object/TeamStats.pm ↑ Summary Mattermost/V4/API/Object/Role/BelongingToPost.pm »
1 package WebService::Mattermost::V4::API::Object::User::Preference;
2  
3 # ABSTRACT: A user preference item.
4  
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use Types::Standard qw(Maybe Str);
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::Name
12 );
13  
14 ################################################################################
15  
16 12 has [ qw(category value) ] => (is => 'ro', isa => Maybe[Str], lazy => 1, builder => 1);
17  
18 ################################################################################
19  
20 0 ▶sub _build_category { shift->raw_data->{category} }
Subroutine _build_category: not called CC=1 SCAR=6.9
21 0 ▶sub _build_value { shift->raw_data->{value} }
Subroutine _build_value: not called CC=1 SCAR=6.9
22  
23 ################################################################################
24  
25 12 1;
26  
27 __END__
28  
29 =pod
30  
31 =encoding UTF-8
32  
33 =head1 NAME
34  
35 WebService::Mattermost::V4::API::Object::User::Preference - A user preference item.
36  
37 =head1 VERSION
38  
39 version 0.28
40  
41 =head1 DESCRIPTION
42  
43 =head2 ATTRIBUTES
44  
45 =over 4
46  
47 =item C<category>
48  
49 =item C<value>
50  
51 =back
52  
53 =head1 SEE ALSO
54  
55 =over 4
56  
57 =item L<WebService::Mattermost::V4::API::Object::Role::BelongingToUser>
58  
59 =item L<WebService::Mattermost::V4::API::Object::Role::Name>
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
« Mattermost/V4/API/Object/TeamStats.pm ↑ Summary Mattermost/V4/API/Object/Role/BelongingToPost.pm »