line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::NewsML_G2::Event_Ref; |
2
|
|
|
|
|
|
|
|
3
|
18
|
|
|
18
|
|
130
|
use Moose; |
|
18
|
|
|
|
|
41
|
|
|
18
|
|
|
|
|
152
|
|
4
|
18
|
|
|
18
|
|
114148
|
use namespace::autoclean; |
|
18
|
|
|
|
|
43
|
|
|
18
|
|
|
|
|
173
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has 'event_id', is => 'ro', isa => 'Str', required => 1; |
7
|
|
|
|
|
|
|
has 'name', is => 'ro', isa => 'Str', required => 1; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; |
12
|
|
|
|
|
|
|
__END__ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
XML::NewsML_G2::Event_Ref - a reference to an event |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my $news_item; |
21
|
|
|
|
|
|
|
my $evref = XML::NewsML_G2::Event_Ref->new |
22
|
|
|
|
|
|
|
(event_id => '1234', name => 'Monthly beer summit'); |
23
|
|
|
|
|
|
|
$news_item->add_event_ref($evref); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=over 4 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=item event_id |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
The unique id of the referenced event |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item name |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
The name of the referenced event |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=back |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHOR |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Christian Eder C<< <christian.eder@apa.at> >> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 LICENCE AND COPYRIGHT |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Copyright (c) 2019, APA-IT. All rights reserved. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
See L<XML::NewsML_G2> for the license. |