NAME

WaitReSS::Feed - A RSS feed

VERSION

version 0.001

DESCRIPTION

This class represents a RSS feed.

ATTRIBUTES

url

The url (a string) to which the RSS item is pointing to. Required.

status

The feed status.

title

The feed title.

description

The feed description.

icon

METHODS

new_from_directory

my $feed = WaitReSS::Feed->new_from_directory( $dir );

Return a new WaitReSS::Feed loaded with information located in $dir (a Path::Tiny object).

as_string

my $str = $feed->as_string;

Return a string representation of the feed, with its main information.

id

my $md5sum = $feed->id;

Return a md5 sum of the feed url.

nb_items

my $count = $feed->nb_items;

Return the $count of items currently in the feed.

save

$feed->save;

Save the feed main information to be retrieved later on.

update

my $inserted = $feed->update;

Force $feed to download its feed, parse it and store new items. Return the number of new items stored.

AUTHOR

Jerome Quelin <jquelin@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.