/[Frey]/trunk/lib/Frey/Feed/Sponge.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/lib/Frey/Feed/Sponge.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 917 - (show annotations)
Sun Jan 4 23:06:59 2009 UTC (15 years, 3 months ago) by dpavlin
File size: 387 byte(s)
return feed as sponge
1 package Frey::Feed::Sponge;
2 use Moose;
3
4 extends 'Frey::Feed';
5 with 'Frey::Web';
6 #with 'Frey::Storage';
7
8 sub as_sponge {
9 my ($self) = @_;
10
11 my @rows;
12
13 foreach my $entry ( $self->entries ) {
14 my @row;
15 push @row, $entry->$_ foreach ( qw/pubDate title link description/ );
16 push @rows, [ @row ];
17 }
18
19 return {
20 rows => \@rows,
21 NAME => [ qw/date title link description/ ],
22 };
23 }
24
25 1;

  ViewVC Help
Powered by ViewVC 1.1.26