WaitReSS::User - A WaitReSS user
version 0.004
This class represents a WaitReSS user.
The user login. Required, used as unique identifier.
my $user = WaitReSS::User->new_from_directory( $dir );
Return a new WaitReSS::User loaded with information located in $dir (a Path::Tiny object).
$dir
$user->save;
Save the user main information to be retrieved later on.
$user->delete;
Delete $user and all its related information. Note that you should also make sure WaitReSS::Users is correctly updated.
$user
$user->register( $url );
Register $url as a feed for $user. Feed is created if needed.
$url
my @feeds = $user->feeds;
Return a list of feeds (WaitReSS::Feed objects> that the $user has registered.
my %items = $user->unread_items( [ $id ] );
Return items currently unread by the user. Result is returned as hash, with feed id as the keys, and an array ref of unread items (WaitReSS::Item objects) for this feed id as values.
Restrict to feeds matching $id if it is specified.
$id
Jerome Quelin <jquelin@gmail.com>
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.
To install WaitReSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WaitReSS
CPAN shell
perl -MCPAN -e shell install WaitReSS
For more information on module installation, please visit the detailed CPAN module installation guide.