| WebService-Google-Reader documentation | Contained in the WebService-Google-Reader distribution. |
WebService::Google::Reader::Feed
Subclass of XML::Atom::Feed.
$feed = WebService::Google::Reader::Feed->B<new>(%params)
$feed->B<init>(%params)
$string = $feed->B<continuation>
Returns the continuation string, if any is present.
| WebService-Google-Reader documentation | Contained in the WebService-Google-Reader distribution. |
package WebService::Google::Reader::Feed; use strict; use warnings; use parent qw(XML::Atom::Feed Class::Accessor::Fast); use WebService::Google::Reader::Constants qw(NS_GOOGLE_READER); __PACKAGE__->mk_accessors(qw(continuation count ids request)); sub new { my ($class, %params) = @_; $params{count} ||= 20; return bless \%params, $class; } sub init { my $self = shift; $self->SUPER::init(@_); # TODO: bail if the continuation identifier hasn't changed. my $continuation = $self->get(NS_GOOGLE_READER, 'continuation'); $self->continuation($continuation) if defined $continuation; return $self; } 1; __END__