File Coverage

blib/lib/Net/Async/Slack/Event/BotChanged.pm
Criterion Covered Total %
statement 13 16 81.2
branch n/a
condition n/a
subroutine 5 8 62.5
pod 0 4 0.0
total 18 28 64.2


line stmt bran cond sub pod time code
1             package Net::Async::Slack::Event::BotChanged;
2              
3 4     4   372081 use strict;
  4         8  
  4         212  
4 4     4   21 use warnings;
  4         8  
  4         389  
5              
6             our $VERSION = '0.015'; # VERSION
7              
8 4     4   27 use parent qw(Net::Async::Slack::Event::Bot);
  4         18  
  4         25  
9              
10 4     4   723 use Net::Async::Slack::EventType;
  4         9  
  4         31  
11              
12             =head1 DESCRIPTION
13              
14             {
15             "type": "bot_changed",
16             "bot": {
17             "id": "B024BE7LH",
18             "app_id": "A4H1JB4AZ",
19             "name": "hugbot",
20             "icons": {
21             "image_48": "url here"
22             }
23             }
24             }
25              
26             =cut
27              
28              
29 0     0 0 0 sub id { shift->{bot}{id} }
30              
31 0     0 0 0 sub app_id { shift->{bot}{app_id} }
32              
33 0     0 0 0 sub name { shift->{bot}{name} }
34              
35 8     8 0 33 sub type { 'bot_changed' }
36              
37             1;
38