File Coverage

blib/lib/Net/Async/Slack/Event/Bot.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 6 33.3
pod 0 4 0.0
total 8 20 40.0


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