| 1 | package WebService::Mattermost::V4::API::Object::Bot; | ||
| 2 | |||
| 3 | # ABSTRACT: A bot item. | ||
| 4 | |||
| 5 | 12 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 12 | ▶ | use Types::Standard '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::Timestamps | ||
| 12 | ); | ||
| 13 | |||
| 14 | ################################################################################ | ||
| 15 | |||
| 16 | 12 | has description => (is => 'ro', isa => Str, lazy => 1, builder => '_build_description'); | |
| 17 | 12 | has display_name => (is => 'ro', isa => Str, lazy => 1, builder => '_build_display_name'); | |
| 18 | 12 | has username => (is => 'ro', isa => Str, lazy => 1, builder => '_build_username'); | |
| 19 | 12 | has user_id => (is => 'ro', isa => Str, lazy => 1, builder => '_build_user_id'); | |
| 20 | |||
| 21 | ################################################################################ | ||
| 22 | |||
| 23 | 1 | ▶ | sub _build_description { shift->raw_data->{description} } |
|
Subroutine
_build_description: called CC=1 SCAR=0.0
| |||
| 24 | 1 | ▶ | sub _build_display_name { shift->raw_data->{display_name} } |
|
Subroutine
_build_display_name: called CC=1 SCAR=0.0
| |||
| 25 | 1 | ▶ | sub _build_username { shift->raw_data->{username} } |
|
Subroutine
_build_username: called CC=1 SCAR=0.0
| |||
| 26 | 1 | ▶ | sub _build_user_id { shift->raw_data->{user_id} } |
|
Subroutine
_build_user_id: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | ################################################################################ | ||
| 29 | |||
| 30 | 12 | 1; | |
| 31 | |||
| 32 | __END__ | ||
| 33 | |||
| 34 | =pod | ||
| 35 | |||
| 36 | =encoding UTF-8 | ||
| 37 | |||
| 38 | =head1 NAME | ||
| 39 | |||
| 40 | WebService::Mattermost::V4::API::Object::Bot - A bot item. | ||
| 41 | |||
| 42 | =head1 VERSION | ||
| 43 | |||
| 44 | version 0.28 | ||
| 45 | |||
| 46 | =head1 DESCRIPTION | ||
| 47 | |||
| 48 | Object version of a Mattermost bot user. | ||
| 49 | |||
| 50 | =head2 ATTRIBUTES | ||
| 51 | |||
| 52 | =over 4 | ||
| 53 | |||
| 54 | =item * C<description> | ||
| 55 | |||
| 56 | =item * C<display_name> | ||
| 57 | |||
| 58 | =item * C<username> | ||
| 59 | |||
| 60 | =item * C<user_id> | ||
| 61 | |||
| 62 | =back | ||
| 63 | |||
| 64 | =head1 SEE ALSO | ||
| 65 | |||
| 66 | =over 4 | ||
| 67 | |||
| 68 | =item * L<WebService::Mattermost::V4::API::Object::Role::BelongingToUser> | ||
| 69 | |||
| 70 | =item * L<WebService::Mattermost::V4::API::Object::Role::Timestamp> | ||
| 71 | |||
| 72 | =back | ||
| 73 | |||
| 74 | =head1 AUTHOR | ||
| 75 | |||
| 76 | Mike Jones <mike@netsplit.org.uk> | ||
| 77 | |||
| 78 | =head1 COPYRIGHT AND LICENSE | ||
| 79 | |||
| 80 | This software is Copyright (c) 2020 by Mike Jones. | ||
| 81 | |||
| 82 | This is free software, licensed under: | ||
| 83 | |||
| 84 | The MIT (X11) License | ||
| 85 | |||
| 86 | =cut | ||