blib/lib/XML/Atom/Person.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/XML/Atom/Link.pm ↑ Summary Build »
1 # $Id$
2  
3 package XML::Atom::Person;
4 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 18 ▶use base qw( XML::Atom::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 18 ▶use XML::Atom;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 18 ▶use XML::Atom::Feed;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 18 ▶use XML::Atom::Entry;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 18 __PACKAGE__->mk_elem_accessors(qw( email name uri url homepage ));
12  
13 18 for my $class (qw( XML::Atom::Feed XML::Atom::Entry )) {
14 36 $class->mk_object_accessor( author => __PACKAGE__ );
15 36 $class->mk_object_accessor( contributor => __PACKAGE__ );
16 }
17  
18 1 ▶sub element_name { 'author' }
Subroutine element_name: called CC=1 SCAR=0.0
Pod undocumented
19  
20 18 1;
21 __END__
22  
23 =head1 NAME
24  
25 XML::Atom::Person - Author or contributor object
26  
27 =head1 SYNOPSIS
28  
29 my $person = XML::Atom::Person->new;
30 $person->email('foo@example.com');
31 $person->name('Foo Bar');
32 $entry->author($person);
33  
34 =head1 DESCRIPTION
35  
36 I<XML::Atom::Person> represents an author or contributor element in an
37 Atom feed or entry.
38  
39 =head1 USAGE
40  
41 =head2 XML::Atom::Person->new
42  
43 =head2 $person->email([ $email ])
44  
45 =head2 $person->name([ $name ])
46  
47 =head2 $person->uri([ $uri ])
48  
49 =cut
« blib/lib/XML/Atom/Link.pm ↑ Summary Build »