WebService::Google::Reader::ListElement - WebService::Google::Reader::ListElement documentation


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

Index


Code Index:

NAME

Top

WebService::Google::Reader::ListElement

DESCRIPTION

Top

This module provides the following accessors. Each list type populates a different subset of the fields. Stringifying a ListElement will return the contents the id field.

id
categories

This is a reference to more ListElements.

count
firstitemmsec
label
shared
sortid
title
value
isBloggerUser
userId
userEmail

METHODS

Top

$elm = WebService::Google::Reader::ListElement->new($ref)

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

package WebService::Google::Reader::ListElement;

use strict;
use warnings;
use parent qw(Class::Accessor::Fast);

__PACKAGE__->mk_ro_accessors(qw(
    id categories count firstitemmsec label shared sortid title value
    isBloggerUser userId userEmail
));

sub new {
    my ($class, $ref) = @_;
    my $self = bless $ref, $class;
    if (exists $self->{categories}) {
        for my $cat (@{$self->{categories}}) {
            $cat = __PACKAGE__->new($cat);
        }
    }
    return $self;
}

use overload q("") => sub { $_[0]->id };

1;

__END__