| 1 | package EWS::DistributionList::Mailbox; | ||||||||||
| 2 | BEGIN { | ||||||||||
| 3 | 1 | ▶ | $EWS::DistributionList::Mailbox::VERSION = '1.143070'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | } | ||||||||||
| 5 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Encode; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | has Name => ( | |||||||||
| 9 | is => 'ro', | ||||||||||
| 10 | isa => 'Str', | ||||||||||
| 11 | required => 1, | ||||||||||
| 12 | ); | ||||||||||
| 13 | |||||||||||
| 14 | 1 | has EmailAddress => ( | |||||||||
| 15 | is => 'ro', | ||||||||||
| 16 | isa => 'Str', | ||||||||||
| 17 | required => 1, | ||||||||||
| 18 | ); | ||||||||||
| 19 | |||||||||||
| 20 | 1 | has MailboxType => ( | |||||||||
| 21 | is => 'ro', | ||||||||||
| 22 | isa => 'Str', | ||||||||||
| 23 | ); | ||||||||||
| 24 | |||||||||||
| 25 | 1 | has RoutingType => ( | |||||||||
| 26 | is => 'ro', | ||||||||||
| 27 | isa => 'Str', | ||||||||||
| 28 | ); | ||||||||||
| 29 | |||||||||||
| 30 | sub BUILDARGS { | ||||||||||
| 31 | 0 | ▶ | my ( $class, @rest ) = @_; | ||||||||
|
Subroutine
BUILDARGS: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 32 | 0 | ▶ | my $params = ( scalar @rest == 1 ? $rest[0] : {@rest} ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | |||||||||||
| 34 | 0 | foreach my $key ( keys %{$params} ) { | |||||||||
| 35 | 0 | ▶ | if ( not ref $params->{$key} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 0 | $params->{$key} = Encode::encode( 'utf8', $params->{$key} ); | |||||||||
| 37 | } | ||||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 0 | return $params; | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 44 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 45 | 1 | 1; | |||||||||