Threading/InReplyTo.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
element_name
2.0
element_ns
2.0
BEGIN
2.0
CRAP 2.0
1 package XML::Atom::Ext::Threading::InReplyTo;
2  
3 use strict;
4 use warnings;
5 use base 'XML::Atom::Base';
6 use XML::Atom::Ext::Threading;
7  
8 our $VERSION = '0.01';
9  
10 __PACKAGE__->mk_attr_accessors(qw( ref href type source ));
11  
12 sub element_name { 'in-reply-to' }
13 sub element_ns { XML::Atom::Ext::Threading->element_ns }
14  
15 1;
16  
17 =head1 NAME
18  
19 XML::Atom::Ext::Threading::InReplyTo
20  
21 =head1 SYNOPSIS
22  
23 use XML::Atom::Entry;
24 use XML::Atom::Ext::Threading;
25  
26 my $entry = XML::Atom::Entry->new;
27  
28 # "in-reply-to" extension element
29 my $reply = XML::Atom::Ext::Threading::InReplyTo->new;
30 $reply->ref('tag:example.org,2005:1');
31 $reply->href('http://www.example.org/entries/1');
32 $reply->type('application/xhtml+xml');
33 $entry->in_reply_to($reply);
34  
35 =head1 METHODS
36  
37 =head2 ref($ref)
38  
39 =head2 href($href)
40  
41 =head2 type($type)
42  
43 =head2 source($source)
44  
45 =head2 element_name
46  
47 returns 'in-reply-to'
48  
49 =head2 element_ns
50  
51 returns the Atom Threading namespace, C<http://purl.org/syndication/thread/1.0>
52  
53 =head1 AUTHOR
54  
55 NAKAGAWA Masaki E<lt>masaki@cpan.orgE<gt>
56  
57 =head1 LICENSE
58  
59 This library is free software; you can redistribute it and/or modify
60 it under the same terms as Perl itself.
61  
62 =head1 SEE ALSO
63  
64 L<XML::Atom::Ext::Threading>
65  
66 =cut