| 1 | package WWW::Picnic::Result::SearchResult; | ||||||||||
| 2 | # ABSTRACT: Picnic product search result item | ||||||||||
| 3 | 2 | our $VERSION = '0.101'; | |||||||||
| 4 | 2 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | extends 'WWW::Picnic::Result'; | |||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | has id => ( | ||||||||||
| 10 | is => 'ro', | ||||||||||
| 11 | lazy => 1, | ||||||||||
| 12 | 1 | ▶ | default => sub { shift->_get('id') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 2 | ); | |||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | has name => ( | ||||||||||
| 17 | is => 'ro', | ||||||||||
| 18 | lazy => 1, | ||||||||||
| 19 | 1 | ▶ | default => sub { shift->_get('name') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 2 | ); | |||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | has display_price => ( | ||||||||||
| 24 | is => 'ro', | ||||||||||
| 25 | lazy => 1, | ||||||||||
| 26 | 1 | ▶ | default => sub { shift->_get('display_price') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 2 | ); | |||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | has price => ( | ||||||||||
| 31 | is => 'ro', | ||||||||||
| 32 | lazy => 1, | ||||||||||
| 33 | 0 | ▶ | default => sub { shift->_get('price') }, | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 34 | 2 | ); | |||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | has image_id => ( | ||||||||||
| 38 | is => 'ro', | ||||||||||
| 39 | lazy => 1, | ||||||||||
| 40 | 0 | ▶ | default => sub { shift->_get('image_id') }, | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | 2 | ); | |||||||||
| 42 | |||||||||||
| 43 | |||||||||||
| 44 | has unit_quantity => ( | ||||||||||
| 45 | is => 'ro', | ||||||||||
| 46 | lazy => 1, | ||||||||||
| 47 | 1 | ▶ | default => sub { shift->_get('unit_quantity') }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 48 | 2 | ); | |||||||||
| 49 | |||||||||||
| 50 | |||||||||||
| 51 | has max_count => ( | ||||||||||
| 52 | is => 'ro', | ||||||||||
| 53 | lazy => 1, | ||||||||||
| 54 | 0 | ▶ | default => sub { shift->_get('max_count') }, | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 55 | 2 | ); | |||||||||
| 56 | |||||||||||
| 57 | |||||||||||
| 58 | has decorators => ( | ||||||||||
| 59 | is => 'ro', | ||||||||||
| 60 | lazy => 1, | ||||||||||
| 61 | 0 | ▶ | default => sub { shift->_get('decorators') || [] }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 62 | 2 | ); | |||||||||
| 63 | |||||||||||
| 64 | |||||||||||
| 65 | 2 | 1; | |||||||||
| 66 | |||||||||||
| 67 | __END__ | ||||||||||