| 1 | package WebService::PivotalTracker::Person; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.12'; | |
| 8 | |||
| 9 | 1 | ▶ | use WebService::PivotalTracker::PropertyAttributes; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | use WebService::PivotalTracker::Types | ||
| 11 | 1 | ▶ | qw( ArrayRef Bool DateTimeObject NonEmptyStr PositiveInt ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 1 | has( @{$_} ) for props_to_attributes( | |
| 16 | id => PositiveInt, | ||
| 17 | name => NonEmptyStr, | ||
| 18 | initials => NonEmptyStr, | ||
| 19 | username => NonEmptyStr, | ||
| 20 | kind => NonEmptyStr, | ||
| 21 | ); | ||
| 22 | |||
| 23 | 1 | with 'WebService::PivotalTracker::Entity'; | |
| 24 | |||
| 25 | ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) | ||
| 26 | 0 | ▶ | sub _self_uri { |
|
Subroutine
_self_uri: not called CC=1 SCAR=6.9
| |||
| 27 | 0 | die 'Me has no uri'; | |
| 28 | } | ||
| 29 | ## use critic | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | |||
| 33 | # ABSTRACT: A Person (a PT user) | ||
| 34 | |||
| 35 | __END__ | ||