| 1 | package WWW::Asana::User; | ||||||||||
| 2 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | $WWW::Asana::User::AUTHORITY = 'cpan:GETTY'; | |||||||||
| 4 | } | ||||||||||
| 5 | { | ||||||||||
| 6 | 1 | $WWW::Asana::User::VERSION = '0.003'; | |||||||||
| 7 | } | ||||||||||
| 8 | # ABSTRACT: Asana User Class | ||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use MooX; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | with 'WWW::Asana::Role::HasClient'; | |||||||||
| 13 | 1 | with 'WWW::Asana::Role::HasResponse'; | |||||||||
| 14 | 1 | with 'WWW::Asana::Role::NewFromResponse'; | |||||||||
| 15 | |||||||||||
| 16 | 1 | with 'WWW::Asana::Role::CanReload'; | |||||||||
| 17 | # CanNotUpdate | ||||||||||
| 18 | # CanNotCreate | ||||||||||
| 19 | # CanNotDelete | ||||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | sub own_base_args { 'users', shift->id } | ||||||||
|
Subroutine
own_base_args: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 22 | 0 | ▶ | sub reload_base_args { 'User', 'GET' } | ||||||||
|
Subroutine
reload_base_args: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 23 | |||||||||||
| 24 | 1 | has id => ( | |||||||||
| 25 | is => 'ro', | ||||||||||
| 26 | required => 1, | ||||||||||
| 27 | ); | ||||||||||
| 28 | |||||||||||
| 29 | 1 | has name => ( | |||||||||
| 30 | is => 'ro', | ||||||||||
| 31 | predicate => 1, | ||||||||||
| 32 | ); | ||||||||||
| 33 | |||||||||||
| 34 | 1 | has email => ( | |||||||||
| 35 | is => 'ro', | ||||||||||
| 36 | predicate => 1, | ||||||||||
| 37 | ); | ||||||||||
| 38 | |||||||||||
| 39 | has workspaces => ( | ||||||||||
| 40 | is => 'ro', | ||||||||||
| 41 | 0 | ▶ | isa => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=3 SCAR=24.8
| |||||||||||
| 42 | 0 | ▶ | die "workspaces must be an ArrayRef" unless ref $_[0] eq 'ARRAY'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | 0 | ▶ | die "workspaces must be an ArrayRef of WWW::Asana::Workspace" if grep { ref $_ ne 'WWW::Asana::Workspace' } @{$_[0]}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | }, | ||||||||||
| 45 | 1 | predicate => 1, | |||||||||
| 46 | ); | ||||||||||
| 47 | |||||||||||
| 48 | 1 | 1; | |||||||||
| 49 | |||||||||||
| 50 | __END__ | ||||||||||