| 1 | package Net::Async::Github::Common; | ||||||||||
| 2 | |||||||||||
| 3 | 9 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 9 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 9 | our $VERSION = '0.013'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | Net::Async::Github::Common - common base class for entities | ||||||||||
| 11 | |||||||||||
| 12 | =head1 METHODS | ||||||||||
| 13 | |||||||||||
| 14 | =head2 new | ||||||||||
| 15 | |||||||||||
| 16 | Instantiates. This will expect the L</github> attribute to be passed. | ||||||||||
| 17 | |||||||||||
| 18 | =cut | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 21 | 0 | my $self = bless { @_[1..$#_] }, $_[0]; | |||||||||
| 22 | 0 | ▶ | die "no ->github provided" unless $self->github; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $self | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | =head2 github | ||||||||||
| 27 | |||||||||||
| 28 | Returns the top-level L<Net::Async::Github> instance. | ||||||||||
| 29 | |||||||||||
| 30 | =cut | ||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub github { shift->{github} } | ||||||||
|
Subroutine
github: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 33 | |||||||||||
| 34 | 9 | 1; | |||||||||
| 35 | |||||||||||