WebService::Google::Reader::Feed - WebService::Google::Reader::Feed documentation


WebService-Google-Reader documentation Contained in the WebService-Google-Reader distribution.

Index


Code Index:

NAME

Top

WebService::Google::Reader::Feed

DESCRIPTION

Top

Subclass of XML::Atom::Feed.

METHODS

Top

new

    $feed = WebService::Google::Reader::Feed->B<new>(%params)

init

    $feed->B<init>(%params)

continuation

    $string = $feed->B<continuation>

Returns the continuation string, if any is present.

SEE ALSO

Top

XML::Atom::Feed


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__