File Coverage

blib/lib/XML/NewsML_G2/Copyright_Holder.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package XML::NewsML_G2::Copyright_Holder;
2              
3 18     18   155 use Moose;
  18         40  
  18         147  
4 18     18   82618 use namespace::autoclean;
  18         37  
  18         171  
5              
6             with 'XML::NewsML_G2::Role::HasQCode';
7              
8             has 'notice', isa => 'Str', is => 'ro';
9             has 'uri', isa => 'Str', is => 'ro';
10             has 'remote_info', isa => 'XML::NewsML_G2::Remote_Info', is => 'ro';
11             has '+qcode', required => 0;
12              
13             __PACKAGE__->meta->make_immutable;
14              
15             1;
16             __END__
17              
18             =head1 NAME
19              
20             XML::NewsML_G2::Copyright_Holder - the news provider (news agency)
21              
22             =head1 SYNOPSIS
23              
24             my $apa = XML::NewsML_G2::Copyright_Holder->new(name => 'APA', qcode => 'apa');
25              
26             =head1 ATTRIBUTES
27              
28             =over 4
29              
30             =item notice
31              
32             for an optional copyright notice
33              
34             =item uri
35              
36             optional uri to copyright holder
37              
38             =item qcode
39              
40             optional qcode of the copyright holder
41              
42             =back
43              
44             =head1 AUTHOR
45              
46             Stefan Hrdlicka C<< <stefan.hrdlicka@apa.at> >>
47              
48             =head1 LICENCE AND COPYRIGHT
49              
50             Copyright (c) 2013-2014, APA-IT. All rights reserved.
51              
52             See L<XML::NewsML_G2> for the license.