NAME

WaitReSS::Item - A RSS item

VERSION

version 0.004

DESCRIPTION

This class represents a simple RSS item.

ATTRIBUTES

title

The item title. Required.

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

description

The item description, usually the whole article or a summary.

pub_date

The item publication date (stored as an epoch integer).

METHODS

id

my $id = $item->id;

Return a unique identifier for the item. Internally, it's a MD5 sum of the url pointed by the item.

as_string

my $str = $item->as_string;

Return a string representation of the item.

timestamp

my $str = $item->timestamp;

Return a string representation (yyyy-mm-dd hh:mm:ss format) of the pub_date attribute.

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.