File Coverage

blib/lib/Net/Async/Github/Common.pm
Criterion Covered Total %
statement 6 10 60.0
branch 0 2 0.0
condition n/a
subroutine 2 4 50.0
pod 2 2 100.0
total 10 18 55.5


line stmt bran cond sub pod time code
1             package Net::Async::Github::Common;
2              
3 9     9   192345 use strict;
  9         26  
  9         446  
4 9     9   56 use warnings;
  9         18  
  9         2068  
5              
6             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 attribute to be passed.
17              
18             =cut
19              
20             sub new {
21 0     0 1   my $self = bless { @_[1..$#_] }, $_[0];
22 0 0         die "no ->github provided" unless $self->github;
23 0           $self
24             }
25              
26             =head2 github
27              
28             Returns the top-level L instance.
29              
30             =cut
31              
32 0     0 1   sub github { shift->{github} }
33              
34             1;
35