Slack/Event/BotAdded.pm

filter: Statementstmt 83.3% 15 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 0.0% 0 / 4 totaltotal 66.6% 20 / 30 CC 1 SCAR 3.2
CC
1
Cov
83%
id
2.0
app_id
2.0
name
2.0
CRAP 1.4
« Slack/Event/Shortcut.pm ↑ Summary Slack/Event/BotChanged.pm »
1 package Net::Async::Slack::Event::BotAdded;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 our $VERSION = '0.015'; # VERSION
7  
8 4 ▶use parent qw(Net::Async::Slack::Event::Bot);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 ▶use Net::Async::Slack::EventType;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 ▶sub id { shift->{bot}{id} }
Subroutine id: not called CC=1 SCAR=6.9
Pod undocumented
29  
30 0 ▶sub app_id { shift->{bot}{app_id} }
Subroutine app_id: not called CC=1 SCAR=6.9
Pod undocumented
31  
32 0 ▶sub name { shift->{bot}{name} }
Subroutine name: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 8 ▶sub type { 'bot_added' }
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
35  
36 4 1;
37  
« Slack/Event/Shortcut.pm ↑ Summary Slack/Event/BotChanged.pm »