File Coverage

blib/lib/WebService/GData/Node/Atom/AuthorEntity.pm
Criterion Covered Total %
statement 17 17 100.0
branch 4 4 100.0
condition n/a
subroutine 5 5 100.0
pod n/a
total 26 26 100.0


line stmt bran cond sub pod time code
1             package WebService::GData::Node::Atom::AuthorEntity;
2 16     16   86334 use base 'WebService::GData::Node::AbstractEntity';
  16         39  
  16         2948  
3 16     16   10376 use WebService::GData::Node::Atom::Author();
  16         41  
  16         331  
4 16     16   10964 use WebService::GData::Node::Atom::Uri();
  16         40  
  16         311  
5 16     16   8957 use WebService::GData::Node::Atom::Name();
  16         40  
  16         2735  
6              
7             our $VERSION = 0.01_02;
8              
9             sub __init {
10 9     9   24 my ($this,$params) = @_;
11              
12 9         143 $this->_entity(new WebService::GData::Node::Atom::Author());
13 9 100       351 $this->{_name} = new WebService::GData::Node::Atom::Name(
14             text=>ref $params->{name}? $params->{name}->{'$t'}: $params->{name} );
15 9 100       485 $this->{_uri} = new WebService::GData::Node::Atom::Uri (
16             text=>ref $params->{uri} ? $params->{uri}->{'$t'} : $params->{uri} );
17              
18 9         58 $this->_entity->child($this->{_name})->child($this->{_uri});
19            
20             }
21              
22              
23              
24             1;