RST/Resource.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
url
2.0
description
2.0
BEGIN
2.0
CRAP 2.0
1 package ICANN::RST::Resource;
2 # ABSTRACT: an object representing an RST resource.
3 use URI;
4 use base qw(ICANN::RST::Base);
5 use strict;
6  
7 sub url { URI->new($_[0]->{'URL'}) }
8 sub description { ICANN::RST::Text->new($_[0]->{'Description'}) }
9  
10 1;
11  
12 __END__
13  
14 =pod
15  
16 =encoding UTF-8
17  
18 =head1 NAME
19  
20 ICANN::RST::Resource - an object representing an RST resource.
21  
22 =head1 VERSION
23  
24 version 0.03
25  
26 =head1 DESCRIPTION
27  
28 This class inherits from L<ICANN::RST::Base> (so it has the C<id()> and
29 C<spec()> methods).
30  
31 =head1 METHODS
32  
33 =head2 description()
34  
35 A L<ICANN::RST::Text> object containing the long textual description of the
36 resource.
37  
38 =head2 url()
39  
40 A L<URI> object representing the URL for this resource.
41  
42 =head1 AUTHOR
43  
44 Gavin Brown <gavin.brown@icann.org>
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 This software is copyright (c) 2025 by Internet Corporation for Assigned Names and Number (ICANN).
49  
50 This is free software; you can redistribute it and/or modify it under
51 the same terms as the Perl 5 programming language system itself.
52  
53 =cut