| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Net::Async::Github::RateLimit; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
250398
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
96
|
|
|
4
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
152
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
4218
|
use Net::Async::Github::RateLimit::Core; |
|
|
2
|
|
|
|
|
34
|
|
|
|
2
|
|
|
|
|
437
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.013'; # VERSION |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Net::Async::Github::RateLimit - represents the current user's rate limit |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 METHODS |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head2 new |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Instantiates. |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=cut |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub new { |
|
23
|
0
|
|
|
0
|
1
|
|
my ($class, %args) = @_; |
|
24
|
0
|
|
|
|
|
|
$args{core} = Net::Async::Github::RateLimit::Core->new(%{ delete $args{resources}{core} }); |
|
|
0
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
bless \%args, $class |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 core |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Returns a L instance. |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
|
33
|
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub core { shift->{core} } |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
|
37
|
|
|
|
|
|
|
|