File Coverage

blib/lib/Net/GitHub/V3/Events.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Net::GitHub::V3::Events;
2              
3 1     1   6 use Moo;
  1         2  
  1         7  
4              
5             our $VERSION = '1.03';
6             our $AUTHORITY = 'cpan:FAYLAND';
7              
8 1     1   261 use URI::Escape;
  1         2  
  1         123  
9              
10             with 'Net::GitHub::V3::Query';
11              
12             ## build methods on fly
13             my %__methods = (
14              
15             events => { url => '/events', paginate => 1 },
16             repos_events => { url => "/repos/%s/%s/events", paginate => 1 },
17             issues_events => { url => "/repos/%s/%s/issues/events", paginate => 1 },
18             networks_events => { url => "/networks/%s/%s/events", paginate => 1 },
19             orgs_events => { url => "/orgs/%s/events", paginate => 1 },
20              
21             user_received_events => { url => "/users/%s/received_events", paginate => 1 },
22             user_public_received_events => { url => "/users/%s/received_events/public", paginate => 1 },
23              
24             user_events => { url => "/users/%s/events", paginate => 1 },
25             user_public_events => { url => "/users/%s/events/public", paginate => 1 },
26              
27             user_orgs_events => { url => "/users/%s/events/orgs/%s", paginate => 1 },
28              
29             );
30             __build_methods(__PACKAGE__, %__methods);
31              
32 1     1   6 no Moo;
  1         2  
  1         4  
33              
34             1;
35             __END__