File Coverage

blib/lib/WebService/Mattermost/V4/API/Object/Results.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::Results;
2:

3: # ABSTRACT: A result object. 4:
5: use Moo;
6: use Types::Standard qw(Maybe Str);
7:
8: extends 'WebService::Mattermost::V4::API::Object';
9:
10: ################################################################################
11:
12: has results => (is => 'ro', isa => Maybe[Str], lazy => 1, builder => 1);
13:
14: ################################################################################
15:
16: sub _build_results { shift->raw_data->{results} }
17:
18: ################################################################################
19:
20: 1;
21:
22: __END__
23:
24: =pod
25:
26: =encoding UTF-8
27:
28: =head1 NAME
29:
30: WebService::Mattermost::V4::API::Object::Results - A result object.
31:
32: =head1 VERSION
33:
34: version 0.30
35:
36: =head1 DESCRIPTION
37:
38: Details a Mattermost Results object. Returned only by L<WebService::Mattermost::V4::API::Resource::Team>'s
39: C<import_from_existing()> method.
40:
41: =head2 ATTRIBUTES
42:
43: =over 4
44:
45: =item * C<results>
46:
47: Stringified "results".
48:
49: =back
50:
51: =head1 AUTHOR
52:
53: Mike Jones <mike@netsplit.org.uk>
54:
55: =head1 COPYRIGHT AND LICENSE
56:
57: This software is Copyright (c) 2023 by Mike Jones.
58:
59: This is free software, licensed under:
60:
61: The MIT (X11) License
62:
63: =cut
64: