NewsML_G2/Link.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« NewsML_G2/Inline_Data.pm ↑ Summary NewsML_G2/Location.pm »
1 package XML::NewsML_G2::Link;
2  
3 32 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 32 has 'residref', isa => 'Str', is => 'rw';
7 32 has 'href', isa => 'Str', is => 'rw';
8 32 has 'version', isa => 'Int', is => 'rw', default => 1;
9  
10 32 __PACKAGE__->meta->make_immutable;
11  
12 32 1;
13  
14 =head1 NAME
15  
16 XML::NewsML_G2::Link - a link specification
17  
18 =head1 SYNOPSIS
19  
20 my $pic = XML::NewsML_G2::Link->new
21 (idref => 'tag:acme.com,2015:123456',
22 version => 2,
23 );
24  
25 =head1 ATTRIBUTES
26  
27 =over 4
28  
29 =item residref
30  
31 A unique id as free text
32  
33 =item href
34  
35 Resource locator i.e. http://somesite.eu/image.jpg
36  
37 =item version
38  
39 The version of the item
40  
41  
42 =back
43  
44 =head1 AUTHOR
45  
46 Christian Eder C<< <christian.eder@apa.at> >>
47  
48 =head1 LICENCE AND COPYRIGHT
49  
50 Copyright (c) 2013-2015, APA-IT. All rights reserved.
51  
52 See L<XML::NewsML_G2> for the license.
« NewsML_G2/Inline_Data.pm ↑ Summary NewsML_G2/Location.pm »