File Coverage

blib/lib/Net/Async/Slack/Event/BotAdded.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::BotAdded;
2              
3 4     4   439244 use strict;
  4         11  
  4         172  
4 4     4   21 use warnings;
  4         7  
  4         424  
5              
6             our $VERSION = '0.015'; # VERSION
7              
8 4     4   58 use parent qw(Net::Async::Slack::Event::Bot);
  4         11  
  4         41  
9              
10 4     4   808 use Net::Async::Slack::EventType;
  4         12  
  4         32  
11              
12             =head1 DESCRIPTION
13              
14             {
15             "type": "bot_added",
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 0     0 0 0 sub id { shift->{bot}{id} }
29              
30 0     0 0 0 sub app_id { shift->{bot}{app_id} }
31              
32 0     0 0 0 sub name { shift->{bot}{name} }
33              
34 8     8 0 34 sub type { 'bot_added' }
35              
36             1;
37