| 1 | package XML::NewsML_G2::Topic; | ||
| 2 | |||
| 3 | # $Id: Topic.pm 46519 2013-05-31 15:38:08Z apatecgortan $ | ||
| 4 | |||
| 5 | 10 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 10 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | |||
| 9 | 10 | has 'name', isa => 'Str', is => 'ro', required => 1; | |
| 10 | 10 | has 'qcode', isa => 'Str', is => 'ro', required => 1; | |
| 11 | |||
| 12 | 10 | __PACKAGE__->meta->make_immutable; | |
| 13 | |||
| 14 | 10 | 1; | |
| 15 | __END__ | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | XML::NewsML_G2::Topic - a temporary topic covered in the news item, | ||
| 20 | used to group related stories | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | my $topic = XML::NewsML_G2::Topic->new(name => 'Swine Flu', qcode => 'h1n1'); | ||
| 25 | |||
| 26 | =head1 ATTRIBUTES | ||
| 27 | |||
| 28 | =over 4 | ||
| 29 | |||
| 30 | =item name | ||
| 31 | |||
| 32 | =item qcode | ||
| 33 | |||
| 34 | =back | ||
| 35 | |||
| 36 | =head1 AUTHOR | ||
| 37 | |||
| 38 | Philipp Gortan C<< <philipp.gortan@apa.at> >> | ||
| 39 | |||
| 40 | =head1 LICENCE AND COPYRIGHT | ||
| 41 | |||
| 42 | Copyright (c) 2013, APA-IT. All rights reserved. | ||
| 43 | |||
| 44 | See L<XML::NewsML_G2> for the license. | ||