| WebService-Google-Reader documentation | Contained in the WebService-Google-Reader distribution. |
WebService::Google::Reader::ListElement
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.
This is a reference to more ListElements.
| 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__