File Coverage

blib/lib/WebService/Mattermost/V4/API/Object/Application.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 6 33.3
pod n/a
total 8 16 50.0


line stmt bran cond sub pod time code
1             package WebService::Mattermost::V4::API::Object::Application;
2:

3: # ABSTRACT: An application item. 4:
5: use Moo;
6: use Types::Standard qw(ArrayRef Bool Maybe Str);
7:
8: extends 'WebService::Mattermost::V4::API::Object';
9: with qw(
10: WebService::Mattermost::V4::API::Object::Role::Description
11: WebService::Mattermost::V4::API::Object::Role::ID
12: WebService::Mattermost::V4::API::Object::Role::Name
13: WebService::Mattermost::V4::API::Object::Role::CreatedAt
14: WebService::Mattermost::V4::API::Object::Role::UpdatedAt
15: );
16:
17: ################################################################################
18:
19: has [ qw(
20: client_secret
21: icon_url
22: homepage
23: ) ] => (is => 'ro', isa => Maybe[Str], lazy => 1, builder => 1);
24: has is_trusted => (is => 'ro', isa => Maybe[Bool], lazy => 1, builder => 1);
25:
26: ################################################################################
27:
28: sub _build_client_secret { shift->raw_data->{client_secret} }
29: sub _build_icon_url { shift->raw_data->{icon_url} }
30: sub _build_homepage { shift->raw_data->{homepage} }
31: sub _build_is_trusted { shift->raw_data->{is_trusted} }
32:
33: ################################################################################
34:
35: 1;
36:
37: __END__
38:
39: =pod
40:
41: =encoding UTF-8
42:
43: =head1 NAME
44:
45: WebService::Mattermost::V4::API::Object::Application - An application item.
46:
47: =head1 VERSION
48:
49: version 0.28
50:
51: =head1 DESCRIPTION
52:
53: Details a Mattermost Application object.
54:
55: =head2 ATTRIBUTES
56:
57: =over 4
58:
59: =item C<client_secret>
60:
61: =item C<icon_url>
62:
63: =item C<homepage>
64:
65: =item C<is_trusted>
66:
67: =back
68:
69: =head1 SEE ALSO
70:
71: =over 4
72:
73: =item L<WebService::Mattermost::V4::API::Object::Role::ID>
74:
75: =back
76:
77: =head1 AUTHOR
78:
79: Mike Jones <mike@netsplit.org.uk>
80:
81: =head1 COPYRIGHT AND LICENSE
82:
83: This software is Copyright (c) 2020 by Mike Jones.
84:
85: This is free software, licensed under:
86:
87: The MIT (X11) License
88:
89: =cut
90: