Take me over?
NAME
Antispam::Toolkit::Role::LinkChecker - A role for classes which check whether a link is spam
VERSION
version 0.03
SYNOPSIS
package MyLinkChecker;
use Moose;
with 'Antispam::Toolkit::Role::LinkChecker';
sub check_link { ... }
DESCRIPTION
This role specifies an interface for classes which check whether a specific link is spam.
REQUIRED METHODS
Classes which consume this method must provide one method:
$checker->check_link( ... )
This method implements the actual spam checking for a link. It must accept the following named parameters:
link
The link to be checked. This must be a non-empty string.
email
An email address associated with the link. This is optional.
ip
An ip address associated with the link. This is optional.
username
A username associated with the link. This is optional.
METHODS
This role provides an around modifier for the $checker->check_link()
method. The modifier does validation on all the parameters, so there's no need to implement this in the class itself.
BUGS
See Antispam::Toolkit for bug reporting details.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2010 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0