| 1 | package Net::GitHub::V3; | ||
| 2 | |||
| 3 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Types::Standard qw(InstanceOf); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $VERSION = '1.03'; | |
| 7 | 1 | our $AUTHORITY = 'cpan:FAYLAND'; | |
| 8 | |||
| 9 | 1 | with 'Net::GitHub::V3::Query'; | |
| 10 | |||
| 11 | 1 | ▶ | use Net::GitHub::V3::Users; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use Net::GitHub::V3::Repos; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use Net::GitHub::V3::Issues; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use Net::GitHub::V3::PullRequests; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use Net::GitHub::V3::Orgs; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use Net::GitHub::V3::GitData; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 1 | ▶ | use Net::GitHub::V3::Gists; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 1 | ▶ | use Net::GitHub::V3::OAuth; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 1 | ▶ | use Net::GitHub::V3::Events; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use Net::GitHub::V3::Gitignore; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 1 | ▶ | use Net::GitHub::V3::Search; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 1 | ▶ | use Net::GitHub::V3::Actions; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 1 | has '+is_main_module' => (default => 1); | |
| 25 | |||
| 26 | has 'user' => ( | ||
| 27 | is => 'rw', | ||
| 28 | isa => InstanceOf['Net::GitHub::V3::Users'], | ||
| 29 | lazy => 1, | ||
| 30 | default => sub { | ||
| 31 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 32 | 0 | return Net::GitHub::V3::Users->new( $self->args_to_pass ); | |
| 33 | }, | ||
| 34 | 1 | ); | |
| 35 | |||
| 36 | has 'org' => ( | ||
| 37 | is => 'rw', | ||
| 38 | isa => InstanceOf['Net::GitHub::V3::Orgs'], | ||
| 39 | lazy => 1, | ||
| 40 | default => sub { | ||
| 41 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 42 | 0 | return Net::GitHub::V3::Orgs->new( $self->args_to_pass ); | |
| 43 | }, | ||
| 44 | 1 | ); | |
| 45 | |||
| 46 | has 'gist' => ( | ||
| 47 | is => 'rw', | ||
| 48 | isa => InstanceOf['Net::GitHub::V3::Gists'], | ||
| 49 | lazy => 1, | ||
| 50 | default => sub { | ||
| 51 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 52 | 0 | return Net::GitHub::V3::Gists->new( $self->args_to_pass ); | |
| 53 | }, | ||
| 54 | 1 | ); | |
| 55 | |||
| 56 | has 'repos' => ( | ||
| 57 | is => 'rw', | ||
| 58 | isa => InstanceOf['Net::GitHub::V3::Repos'], | ||
| 59 | lazy => 1, | ||
| 60 | predicate => 'is_repos_init', | ||
| 61 | default => sub { | ||
| 62 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 63 | 0 | return Net::GitHub::V3::Repos->new( $self->args_to_pass ); | |
| 64 | }, | ||
| 65 | 1 | ); | |
| 66 | |||
| 67 | has 'issue' => ( | ||
| 68 | is => 'rw', | ||
| 69 | isa => InstanceOf['Net::GitHub::V3::Issues'], | ||
| 70 | lazy => 1, | ||
| 71 | predicate => 'is_issue_init', | ||
| 72 | default => sub { | ||
| 73 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 74 | 0 | return Net::GitHub::V3::Issues->new( $self->args_to_pass ); | |
| 75 | }, | ||
| 76 | 1 | ); | |
| 77 | |||
| 78 | has 'pull_request' => ( | ||
| 79 | is => 'rw', | ||
| 80 | isa => InstanceOf['Net::GitHub::V3::PullRequests'], | ||
| 81 | lazy => 1, | ||
| 82 | predicate => 'is_pull_request_init', | ||
| 83 | default => sub { | ||
| 84 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 85 | 0 | return Net::GitHub::V3::PullRequests->new( $self->args_to_pass ); | |
| 86 | }, | ||
| 87 | 1 | ); | |
| 88 | |||
| 89 | has 'git_data' => ( | ||
| 90 | is => 'rw', | ||
| 91 | isa => InstanceOf['Net::GitHub::V3::GitData'], | ||
| 92 | lazy => 1, | ||
| 93 | predicate => 'is_git_data_init', | ||
| 94 | default => sub { | ||
| 95 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 96 | 0 | return Net::GitHub::V3::GitData->new( $self->args_to_pass ); | |
| 97 | }, | ||
| 98 | 1 | ); | |
| 99 | |||
| 100 | has 'oauth' => ( | ||
| 101 | is => 'rw', | ||
| 102 | isa => InstanceOf['Net::GitHub::V3::OAuth'], | ||
| 103 | lazy => 1, | ||
| 104 | default => sub { | ||
| 105 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 106 | 0 | return Net::GitHub::V3::OAuth->new( $self->args_to_pass ); | |
| 107 | }, | ||
| 108 | 1 | ); | |
| 109 | |||
| 110 | has 'event' => ( | ||
| 111 | is => 'rw', | ||
| 112 | isa => InstanceOf['Net::GitHub::V3::Events'], | ||
| 113 | lazy => 1, | ||
| 114 | default => sub { | ||
| 115 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 116 | 0 | return Net::GitHub::V3::Events->new( $self->args_to_pass ); | |
| 117 | }, | ||
| 118 | 1 | ); | |
| 119 | |||
| 120 | has 'search' => ( | ||
| 121 | is => 'rw', | ||
| 122 | isa => InstanceOf['Net::GitHub::V3::Search'], | ||
| 123 | lazy => 1, | ||
| 124 | default => sub { | ||
| 125 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 126 | 0 | return Net::GitHub::V3::Search->new( $self->args_to_pass ); | |
| 127 | }, | ||
| 128 | 1 | ); | |
| 129 | |||
| 130 | has 'gitignore' => ( | ||
| 131 | is => 'rw', | ||
| 132 | isa => InstanceOf['Net::GitHub::V3::Gitignore'], | ||
| 133 | lazy => 1, | ||
| 134 | default => sub { | ||
| 135 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 136 | 0 | return Net::GitHub::V3::Gitignore->new( $self->args_to_pass ); | |
| 137 | }, | ||
| 138 | 1 | ); | |
| 139 | |||
| 140 | has 'actions' => ( | ||
| 141 | is => 'rw', | ||
| 142 | isa => InstanceOf['Net::GitHub::V3::Actions'], | ||
| 143 | lazy => 1, | ||
| 144 | default => sub { | ||
| 145 | 0 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 146 | 0 | return Net::GitHub::V3::Actions->new( $self->args_to_pass ); | |
| 147 | }, | ||
| 148 | 1 | ); | |
| 149 | |||
| 150 | 1 | ▶ | no Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 151 | |||
| 152 | 1 | 1; | |
| 153 | __END__ | ||