| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Pithub::Issues::Assignees; | 
| 2 |  |  |  |  |  |  | our $AUTHORITY = 'cpan:PLU'; | 
| 3 |  |  |  |  |  |  | our $VERSION = '0.01041'; | 
| 4 |  |  |  |  |  |  |  | 
| 5 |  |  |  |  |  |  | # ABSTRACT: Github v3 Issue Assignees API | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 17 |  |  | 17 |  | 139 | use Moo; | 
|  | 17 |  |  |  |  | 35 |  | 
|  | 17 |  |  |  |  | 98 |  | 
| 8 | 17 |  |  | 17 |  | 5112 | use Carp qw( croak ); | 
|  | 17 |  |  |  |  | 37 |  | 
|  | 17 |  |  |  |  | 4118 |  | 
| 9 |  |  |  |  |  |  | extends 'Pithub::Base'; | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | sub check { | 
| 13 | 3 |  |  | 3 | 1 | 7571 | my ( $self, %args ) = @_; | 
| 14 | 3 | 100 |  |  |  | 24 | croak 'Missing key in parameters: assignee' unless $args{assignee}; | 
| 15 | 2 |  |  |  |  | 23 | $self->_validate_user_repo_args( \%args ); | 
| 16 |  |  |  |  |  |  | return $self->request( | 
| 17 |  |  |  |  |  |  | method => 'GET', | 
| 18 |  |  |  |  |  |  | path   => sprintf( | 
| 19 |  |  |  |  |  |  | '/repos/%s/%s/assignees/%s', delete $args{user}, | 
| 20 |  |  |  |  |  |  | delete $args{repo},          delete $args{assignee} | 
| 21 | 2 |  |  |  |  | 42 | ), | 
| 22 |  |  |  |  |  |  | %args, | 
| 23 |  |  |  |  |  |  | ); | 
| 24 |  |  |  |  |  |  | } | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | sub list { | 
| 28 | 2 |  |  | 2 | 1 | 1685 | my ( $self, %args ) = @_; | 
| 29 | 2 |  |  |  |  | 12 | $self->_validate_user_repo_args( \%args ); | 
| 30 |  |  |  |  |  |  | return $self->request( | 
| 31 |  |  |  |  |  |  | method => 'GET', | 
| 32 |  |  |  |  |  |  | path   => sprintf( | 
| 33 |  |  |  |  |  |  | '/repos/%s/%s/assignees', delete $args{user}, delete $args{repo} | 
| 34 | 2 |  |  |  |  | 23 | ), | 
| 35 |  |  |  |  |  |  | %args, | 
| 36 |  |  |  |  |  |  | ); | 
| 37 |  |  |  |  |  |  | } | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | 1; | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | __END__ |