| 1 | package WebService::PivotalTracker::Me; | ||
| 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 | time_zone => NonEmptyStr, | ||
| 21 | api_token => NonEmptyStr, | ||
| 22 | has_google_identity => Bool, | ||
| 23 | email => NonEmptyStr, | ||
| 24 | receives_in_app_notifications => Bool, | ||
| 25 | created_at => { | ||
| 26 | type => DateTimeObject, | ||
| 27 | inflator => '_inflate_iso8601_datetime', | ||
| 28 | }, | ||
| 29 | updated_at => { | ||
| 30 | type => DateTimeObject, | ||
| 31 | inflator => '_inflate_iso8601_datetime', | ||
| 32 | }, | ||
| 33 | kind => NonEmptyStr, | ||
| 34 | ); | ||
| 35 | |||
| 36 | 1 | with 'WebService::PivotalTracker::Entity'; | |
| 37 | |||
| 38 | ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) | ||
| 39 | 0 | ▶ | sub _self_uri { |
|
Subroutine
_self_uri: not called CC=1 SCAR=6.9
| |||
| 40 | 0 | die 'Me has no uri'; | |
| 41 | } | ||
| 42 | ## use critic | ||
| 43 | |||
| 44 | 1 | 1; | |
| 45 | |||
| 46 | # ABSTRACT: The /me resource, an expanded Person | ||
| 47 | |||
| 48 | __END__ | ||