| 1 | package WWW::Ohloh::API::Enlistments; | ||
| 2 | 29 | our $AUTHORITY = 'cpan:YANICK'; | |
| 3 | |||
| 4 | 29 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 29 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 29 | ▶ | use Object::InsideOut qw/ WWW::Ohloh::API::Collection /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 29 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 29 | ▶ | use XML::LibXML; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 29 | ▶ | use Readonly; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 29 | ▶ | use List::MoreUtils qw/ any /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 29 | ▶ | use WWW::Ohloh::API::Enlistment; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 29 | our $VERSION = '1.0_1'; | |
| 16 | |||
| 17 | 29 | my @ALLOWED_SORTING; | |
| 18 | 29 | Readonly @ALLOWED_SORTING => qw/ module_name type url /; | |
| 19 | |||
| 20 | 29 | my @project_id_of : Field : Arg(project_id) : Set(_set_project_id) : | |
| 21 | Get(project_id); | ||
| 22 | |||
| 23 | 1 | ▶ | sub element { return 'WWW::Ohloh::API::Enlistment' } |
|
Subroutine
element: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 24 | 1 | ▶ | sub element_name { return 'enlistment' } |
|
Subroutine
element_name: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | |||
| 26 | 1 | ▶ | sub query_path { |
|
Subroutine
query_path: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 27 | 1 | my $self = shift; | |
| 28 | 1 | return "projects/$project_id_of[$$self]/enlistments.xml"; | |
| 29 | } | ||
| 30 | |||
| 31 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 32 | |||
| 33 | 0 | ▶ | sub is_allowed_sort { |
|
Subroutine
is_allowed_sort: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 34 | 0 | my $s = shift; | |
| 35 | 0 | ▶ | return any { $s eq $_ } @ALLOWED_SORTING; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 36 | } | ||
| 37 | |||
| 38 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 39 | |||
| 40 | 29 | 'end of WWW::Ohloh::API::Enlistments'; | |
| 41 | |||
| 42 | __END__ | ||