| 1 | package WWW::MailboxOrg::Entity::Domain; | ||
| 2 | |||
| 3 | # ABSTRACT: Domain entity object | ||
| 4 | |||
| 5 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | has _client => ( | |
| 8 | is => 'ro', | ||
| 9 | required => 1, | ||
| 10 | weak_ref => 1, | ||
| 11 | init_arg => 'client', | ||
| 12 | ); | ||
| 13 | |||
| 14 | 2 | has domain => ( | |
| 15 | is => 'ro', | ||
| 16 | required => 1, | ||
| 17 | ); | ||
| 18 | |||
| 19 | |||
| 20 | 2 | has context_id => ( | |
| 21 | is => 'ro', | ||
| 22 | predicate => 'has_context_id', | ||
| 23 | ); | ||
| 24 | |||
| 25 | |||
| 26 | 2 | has is_active => ( | |
| 27 | is => 'ro', | ||
| 28 | predicate => 'has_is_active', | ||
| 29 | ); | ||
| 30 | |||
| 31 | |||
| 32 | 2 | has data => ( | |
| 33 | is => 'ro', | ||
| 34 | lazy => 1, | ||
| 35 | builder => '_build_data', | ||
| 36 | ); | ||
| 37 | |||
| 38 | 1 | ▶ | sub _build_data { |
|
Subroutine
_build_data: called CC=1 SCAR=0.0
| |||
| 39 | 1 | my ($self) = @_; | |
| 40 | return { | ||
| 41 | 1 | domain => $self->domain, | |
| 42 | context_id => $self->context_id, | ||
| 43 | is_active => $self->is_active, | ||
| 44 | }; | ||
| 45 | } | ||
| 46 | |||
| 47 | |||
| 48 | 2 | 1; | |
| 49 | |||
| 50 | __END__ | ||