File Coverage

blib/lib/WebService/GData/Feed/Entry.pm
Criterion Covered Total %
statement 17 20 85.0
branch 0 2 0.0
condition n/a
subroutine 6 7 85.7
pod 2 4 50.0
total 25 33 75.7


line stmt bran cond sub pod time code
1             package WebService::GData::Feed::Entry;
2 10     10   101176 use base 'WebService::GData::Node::Atom::EntryEntity';
  10         106  
  10         7593  
3 10     10   6760 use WebService::GData::Serialize;
  10         24  
  10         83  
4              
5             our $VERSION = 0.01_04;
6              
7             sub __init {
8 6     6   15 my ($this,$params,$request) = @_;
9 6         86 $this->SUPER::__init($params);
10 6         21 $this->{_request}=$request;
11 6         42 $this->{_serializer}= 'xml';
12              
13             }
14              
15             sub serialize_as {
16 0     0 0 0 my ($this,$serializer)=@_;
17 0 0       0 $this->{_serializer}= $serializer if($serializer);
18 0         0 $this->{_serializer};
19             }
20              
21             sub serialize {
22 2     2 0 8 my ($this,@args) = @_;
23 2         6 my $serialize = $this->{_serializer};
24 2         12 return WebService::GData::Serialize->$serialize($this->_entity,$this->_entity,@args);
25             }
26              
27             sub content_type {
28 2     2 1 5 my $this = shift;
29 2         26 $this->{_content}->type;
30             }
31              
32             sub content_source {
33 2     2 1 5 my $this = shift;
34 2         20 $this->{_content}->src;
35             }
36              
37              
38             "The earth is blue like an orange.";
39              
40             __END__