line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Google::Reader::Feed; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
8
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
58
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
46
|
|
5
|
2
|
|
|
2
|
|
7
|
use parent qw(XML::Atom::Feed Class::Accessor::Fast); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use WebService::Google::Reader::Constants qw(NS_GOOGLE_READER); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw(continuation count ids request)); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
|
|
|
|
|
|
my ($class, %params) = @_; |
13
|
|
|
|
|
|
|
$params{count} ||= 20; |
14
|
|
|
|
|
|
|
return bless \%params, $class; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub init { |
18
|
|
|
|
|
|
|
my $self = shift; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$self->SUPER::init(@_); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# TODO: bail if the continuation identifier hasn't changed. |
23
|
|
|
|
|
|
|
my $continuation = $self->get(NS_GOOGLE_READER, 'continuation'); |
24
|
|
|
|
|
|
|
$self->continuation($continuation) if defined $continuation; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
return $self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# XML::Atom::Feed::entries() returns undef when there are no entries, |
30
|
|
|
|
|
|
|
# instead of an empty list, but only when using XML::LibXML. |
31
|
|
|
|
|
|
|
sub entries { |
32
|
|
|
|
|
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
return @{[ $self->SUPER::entries(@_) ]}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |