File Coverage

blib/lib/Net/Async/Slack/Event/ResourcesAdded.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             package Net::Async::Slack::Event::ResourcesAdded;
2              
3 4     4   251839 use strict;
  4         9  
  4         194  
4 4     4   36 use warnings;
  4         10  
  4         369  
5              
6             our $VERSION = '0.015'; # VERSION
7              
8 4     4   450 use Net::Async::Slack::EventType;
  4         9  
  4         28  
9              
10             =head1 NAME
11              
12             Net::Async::Slack::Event::ResourcesAdded - Access to a set of resources was granted for your app
13              
14             =head1 DESCRIPTION
15              
16             Example input data:
17              
18             {
19             "token": "XXYYZZ",
20             "team_id": "TXXXXXXXX",
21             "api_app_id": "AXXXXXXXXX",
22             "event": {
23             "type": "resources_added",
24             "resources": [
25             {
26             "resource": {
27             "type": "im",
28             "grant": {
29             "type": "specific",
30             "resource_id": "DXXXXXXXX"
31             }
32             },
33             "scopes": [
34             "chat:write:user",
35             "im:read",
36             "im:history",
37             "commands"
38             ]
39             }
40             ]
41             },
42             "type": "event_callback",
43             "authed_teams": [],
44             "event_id": "EvXXXXXXXX",
45             "event_time": 1234567890
46             }
47              
48              
49             =cut
50              
51 8     8 0 31 sub type { 'resources_added' }
52              
53             1;
54              
55             __END__