| 1 | package Net::GitHub::V3::Gitignore; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | our $VERSION = '1.03'; | |||||||||
| 6 | 1 | our $AUTHORITY = 'cpan:FAYLAND'; | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use URI::Escape; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | with 'Net::GitHub::V3::Query'; | |||||||||
| 11 | |||||||||||
| 12 | sub templates { | ||||||||||
| 13 | 0 | ▶ | my ( $self, $args ) = @_; | ||||||||
|
Subroutine
templates: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 14 | |||||||||||
| 15 | # for old | ||||||||||
| 16 | 0 | ▶ | unless (ref($args) eq 'HASH') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | $args = { type => $args }; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | my $uri = URI->new('/gitignore/templates'); | |||||||||
| 21 | 0 | $uri->query_form($args); | |||||||||
| 22 | 0 | return $self->query($uri->as_string); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | sub template { | ||||||||||
| 26 | 0 | ▶ | my ( $self, $template, $args ) = @_; | ||||||||
|
Subroutine
template: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 27 | |||||||||||
| 28 | # for old | ||||||||||
| 29 | 0 | ▶ | unless (ref($args) eq 'HASH') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | $args = { type => $args }; | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 0 | my $uri = URI->new("/gitignore/templates/" . uri_escape($template)); | |||||||||
| 34 | 0 | $uri->query_form($args); | |||||||||
| 35 | 0 | return $self->query($uri->as_string); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 1 | ▶ | no Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | |||||||||||
| 40 | 1 | 1; | |||||||||
| 41 | __END__ | ||||||||||