| 1 | package WWW::MailboxOrg::Entity::Domain; | ||
| 2 | |||
| 3 | # ABSTRACT: Domain entity object | ||
| 4 | |||
| 5 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.001'; | |
| 8 | |||
| 9 | 1 | has _client => ( | |
| 10 | is => 'ro', | ||
| 11 | required => 1, | ||
| 12 | weak_ref => 1, | ||
| 13 | init_arg => 'client', | ||
| 14 | ); | ||
| 15 | |||
| 16 | 1 | has domain => ( | |
| 17 | is => 'ro', | ||
| 18 | required => 1, | ||
| 19 | ); | ||
| 20 | |||
| 21 | |||
| 22 | 1 | has context_id => ( | |
| 23 | is => 'ro', | ||
| 24 | predicate => 'has_context_id', | ||
| 25 | ); | ||
| 26 | |||
| 27 | |||
| 28 | 1 | has is_active => ( | |
| 29 | is => 'ro', | ||
| 30 | predicate => 'has_is_active', | ||
| 31 | ); | ||
| 32 | |||
| 33 | |||
| 34 | 1 | has data => ( | |
| 35 | is => 'ro', | ||
| 36 | builder => '_build_data', | ||
| 37 | ); | ||
| 38 | |||
| 39 | sub _build_data { | ||
| 40 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
_build_data: not called CC=1 SCAR=6.9
| |||
| 41 | return { | ||
| 42 | 0 | domain => $self->domain, | |
| 43 | context_id => $self->context_id, | ||
| 44 | is_active => $self->is_active, | ||
| 45 | }; | ||
| 46 | } | ||
| 47 | |||
| 48 | |||
| 49 | 1 | 1; | |
| 50 | |||
| 51 | __END__ | ||
| 52 | |||
| 53 | =pod | ||
| 54 | |||
| 55 | =encoding UTF-8 | ||
| 56 | |||
| 57 | =head1 NAME | ||
| 58 | |||
| 59 | WWW::MailboxOrg::Entity::Domain - Domain entity object | ||
| 60 | |||
| 61 | =head1 VERSION | ||
| 62 | |||
| 63 | version 0.001 | ||
| 64 | |||
| 65 | =head2 domain | ||
| 66 | |||
| 67 | Domain name. | ||
| 68 | |||
| 69 | =head2 context_id | ||
| 70 | |||
| 71 | Context ID. | ||
| 72 | |||
| 73 | =head2 is_active | ||
| 74 | |||
| 75 | Whether the domain is active. | ||
| 76 | |||
| 77 | =head2 data | ||
| 78 | |||
| 79 | Returns a hashref of the entity data. | ||
| 80 | |||
| 81 | =head1 NAME | ||
| 82 | |||
| 83 | WWW::MailboxOrg::Entity::Domain - Domain entity object | ||
| 84 | |||
| 85 | =head1 SEE ALSO | ||
| 86 | |||
| 87 | L<WWW::MailboxOrg> | ||
| 88 | |||
| 89 | =cut | ||
| 90 | |||
| 91 | =head1 SUPPORT | ||
| 92 | |||
| 93 | =head2 Issues | ||
| 94 | |||
| 95 | Please report bugs and feature requests on GitHub at | ||
| 96 | L<https://github.com/getty/p5-www-mailboxorg/issues>. | ||
| 97 | |||
| 98 | =head2 IRC | ||
| 99 | |||
| 100 | Join C<#perl-help> on C<irc.perl.org> or message Getty directly. | ||
| 101 | |||
| 102 | =head1 CONTRIBUTING | ||
| 103 | |||
| 104 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 105 | |||
| 106 | =head1 AUTHOR | ||
| 107 | |||
| 108 | Torsten Raudssus <getty@cpan.org> | ||
| 109 | |||
| 110 | =head1 COPYRIGHT AND LICENSE | ||
| 111 | |||
| 112 | This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>. | ||
| 113 | |||
| 114 | This is free software; you can redistribute it and/or modify it under | ||
| 115 | the same terms as the Perl 5 programming language system itself. | ||
| 116 | |||
| 117 | =cut | ||