blib/lib/XML/NewsML_G2/Role/HasQCode.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/XML/NewsML_G2/Remote_Info.pm ↑ Summary blib/lib/XML/NewsML_G2/Role/HasTranslations.pm »
1 package XML::NewsML_G2::Role::HasQCode;
2  
3 35 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 35 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 35 has 'name', isa => 'Str', is => 'ro', required => 1;
7 35 has 'qcode', isa => 'Str', is => 'ro', required => 1;
8  
9 35 1;
10 __END__
11  
12 =head1 NAME
13  
14 XML::NewsML_G2::Role::HasQCode - Role for item types that have a QCode
15  
16 =head1 SYNOPSIS
17  
18 my $desk = XML::NewsML_G2::Desk->new
19 (name => 'Sports', qcode => 'spo');
20  
21 =head1 DESCRIPTION
22  
23 This module serves as a role for all NewsML-G2 item type classes which have
24 a qcode (and a human readable name)
25  
26 =head1 ATTRIBUTES
27  
28 =over 4
29  
30 =item name
31  
32 A string containing the name of the item
33  
34 =item qcode
35  
36 The right part of an IPTC compliant QCode
37  
38 =back
39  
40 =head1 AUTHOR
41  
42 Philipp Gortan C<< <philipp.gortan@apa.at> >>
43 Christian Eder C<< <christian.eder@apa.at> >>
44  
45 =head1 LICENCE AND COPYRIGHT
46  
47 Copyright (c) 2013-2019, APA-IT. All rights reserved.
48  
49 See L<XML::NewsML_G2> for the license.
« blib/lib/XML/NewsML_G2/Remote_Info.pm ↑ Summary blib/lib/XML/NewsML_G2/Role/HasTranslations.pm »