| 1 | package Net::Google::PicasaWeb::Comment; | ||
| 2 | { | ||
| 3 | $Net::Google::PicasaWeb::Comment::VERSION = '0.12'; | ||
| 4 | } | ||
| 5 | use Moose; | ||
| 6 | |||
| 7 | # ABSTRACT: represents a single Picasa Web comment | ||
| 8 | |||
| 9 | extends 'Net::Google::PicasaWeb::Feed'; | ||
| 10 | |||
| 11 | |||
| 12 | has content => ( | ||
| 13 | is => 'rw', | ||
| 14 | isa => 'Str', | ||
| 15 | ); | ||
| 16 | |||
| 17 | |||
| 18 | override from_feed => sub { | ||
| 19 | my ($class, $service, $entry) = @_; | ||
| 20 | my $self = super(); | ||
| 21 | |||
| 22 | $self->content($entry->field('content')); | ||
| 23 | return $self; | ||
| 24 | }; | ||
| 25 | |||
| 26 | |||
| 27 | __PACKAGE__->meta->make_immutable; | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__ |