| 1 | package XML::NewsML_G2::Destination; | ||
| 2 | |||
| 3 | 19 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 19 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # header elements | ||
| 7 | 19 | has 'name', | |
| 8 | isa => 'Str', | ||
| 9 | is => 'ro', | ||
| 10 | required => 1; | ||
| 11 | 19 | has 'role', | |
| 12 | isa => 'Str', | ||
| 13 | is => 'ro'; | ||
| 14 | |||
| 15 | 19 | __PACKAGE__->meta->make_immutable; | |
| 16 | |||
| 17 | 19 | 1; | |
| 18 | __END__ | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | XML::NewsML_G2::Destination - a container that can hold Destination Attributes | ||
| 23 | |||
| 24 | =head1 SYNOPSIS | ||
| 25 | |||
| 26 | my $destination1 = XML::NewsML_G2::Destination->new(name => 'DEST1', role => 'dest:mailing'); | ||
| 27 | my $destination2 = 'DEST2'; | ||
| 28 | |||
| 29 | my $nm = XML::NewsML_G2::News_Message->new; | ||
| 30 | $nm->add_destination($destination1); | ||
| 31 | $nm->add_destination($destination2); | ||
| 32 | |||
| 33 | =head1 ATTRIBUTES | ||
| 34 | |||
| 35 | =over 4 | ||
| 36 | |||
| 37 | =item name | ||
| 38 | |||
| 39 | Destination name | ||
| 40 | |||
| 41 | =item role | ||
| 42 | |||
| 43 | Optional role | ||
| 44 | |||
| 45 | =back | ||
| 46 | |||
| 47 | =head1 AUTHOR | ||
| 48 | |||
| 49 | Mario Paumann C<< <mario.paumann@apa.at> >> | ||
| 50 | |||
| 51 | =head1 LICENCE AND COPYRIGHT | ||
| 52 | |||
| 53 | Copyright (c) 2017, APA-IT. All rights reserved. | ||
| 54 | |||
| 55 | See L<XML::NewsML_G2> for the license. | ||