| 1 | package WWW::Picnic::Result::User; | ||||||||||
| 2 | 2 | our $VERSION = '0.100'; | |||||||||
| 3 | 2 | our $AUTHORITY = 'cpan:GETTY'; | |||||||||
| 4 | # ABSTRACT: Picnic user account information | ||||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | extends 'WWW::Picnic::Result'; | |||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | has user_id => ( | ||||||||||
| 12 | is => 'ro', | ||||||||||
| 13 | lazy => 1, | ||||||||||
| 14 | 1 | ▶ | default => sub { shift->_get('user_id') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 2 | ); | |||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | has firstname => ( | ||||||||||
| 19 | is => 'ro', | ||||||||||
| 20 | lazy => 1, | ||||||||||
| 21 | 1 | ▶ | default => sub { shift->_get('firstname') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 2 | ); | |||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | has lastname => ( | ||||||||||
| 26 | is => 'ro', | ||||||||||
| 27 | lazy => 1, | ||||||||||
| 28 | 1 | ▶ | default => sub { shift->_get('lastname') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 29 | 2 | ); | |||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | has contact_email => ( | ||||||||||
| 33 | is => 'ro', | ||||||||||
| 34 | lazy => 1, | ||||||||||
| 35 | 1 | ▶ | default => sub { shift->_get('contact_email') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 36 | 2 | ); | |||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | has phone => ( | ||||||||||
| 40 | is => 'ro', | ||||||||||
| 41 | lazy => 1, | ||||||||||
| 42 | 1 | ▶ | default => sub { shift->_get('phone') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 43 | 2 | ); | |||||||||
| 44 | |||||||||||
| 45 | |||||||||||
| 46 | has customer_type => ( | ||||||||||
| 47 | is => 'ro', | ||||||||||
| 48 | lazy => 1, | ||||||||||
| 49 | 1 | ▶ | default => sub { shift->_get('customer_type') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 50 | 2 | ); | |||||||||
| 51 | |||||||||||
| 52 | |||||||||||
| 53 | has address => ( | ||||||||||
| 54 | is => 'ro', | ||||||||||
| 55 | lazy => 1, | ||||||||||
| 56 | 1 | ▶ | default => sub { shift->_get('address') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 57 | 2 | ); | |||||||||
| 58 | |||||||||||
| 59 | |||||||||||
| 60 | has household_details => ( | ||||||||||
| 61 | is => 'ro', | ||||||||||
| 62 | lazy => 1, | ||||||||||
| 63 | 0 | ▶ | default => sub { shift->_get('household_details') }, | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 64 | 2 | ); | |||||||||
| 65 | |||||||||||
| 66 | |||||||||||
| 67 | has feature_toggles => ( | ||||||||||
| 68 | is => 'ro', | ||||||||||
| 69 | lazy => 1, | ||||||||||
| 70 | 1 | ▶ | default => sub { shift->_get('feature_toggles') || [] }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 71 | 2 | ); | |||||||||
| 72 | |||||||||||
| 73 | |||||||||||
| 74 | has subscriptions => ( | ||||||||||
| 75 | is => 'ro', | ||||||||||
| 76 | lazy => 1, | ||||||||||
| 77 | 0 | ▶ | default => sub { shift->_get('subscriptions') || [] }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 78 | 2 | ); | |||||||||
| 79 | |||||||||||
| 80 | |||||||||||
| 81 | 2 | 1; | |||||||||
| 82 | |||||||||||
| 83 | __END__ | ||||||||||