NAME
Valiant::Proxy::Hash - Wrap a hashref in a result object for validation.
SYNOPSIS
my $proxy = Valiant::Proxy::Hash->new(
validations => [
[ name => presence => 1, length => [2,15] ],
],
);
my $result = $proxy->validate({ name => 'Jo' });
$result->valid;
DESCRIPTION
Allows you to run validations against a HashRef.
You probably won't use this directly, although you can.
METHODS
In addition to the interface defined by Valiant::Proxy this class provides:
keys
Returns the keys of the wrapped hashref.
values
Returns the values of the wrapped hashref, in the same order as "keys".
SEE ALSO
This does the interface defined by Valiant::Proxy so see the docs on that.
Also: Valiant, Valiant::Validator, Valiant::Validator::Each.
AUTHOR
See Valiant
COPYRIGHT & LICENSE
See Valiant