| 1 | package Net::Async::Github::RateLimit; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use Net::Async::Github::RateLimit::Core; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | 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 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | 0 | my ($class, %args) = @_; | |
| 24 | 0 | $args{core} = Net::Async::Github::RateLimit::Core->new(%{ delete $args{resources}{core} }); | |
| 25 | 0 | bless \%args, $class | |
| 26 | } | ||
| 27 | |||
| 28 | =head2 core | ||
| 29 | |||
| 30 | Returns a L<Net::Async::Github::RateLimit::Core> instance. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 0 | ▶ | sub core { shift->{core} } |
|
Subroutine
core: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 2 | 1; | |
| 37 | |||