DBIx-Class-AuditAny
view release on metacpan or search on metacpan
lib/DBIx/Class/AuditAny/DataPoint.pm view on Meta::CPAN
=cut
has 'name', is => 'ro', required => 1, isa => sub {
$_[0] =~ /^[a-z0-9\_\-]+$/ or die "'$_[0]' is invalid - " .
"only lowercase letters, numbers, underscore(_) and dash(-) allowed";
};
=head2 context
The name of the -context- which determines at what point the value
can be computed and collected, and into which Context -object- it
will be cached (although, since Context objects overlay in a hierarchy,
lower-level contexts can automatically access the datapoint values of the
higher-level contexts (i.e. 'set' datapoints are implied in 'change'
context but not 'column' datapoints. This is just standard belongs_to vs
has_many logic based on the way contexts are interrelated, regardless of
how or if they are actually stored)
=cut
has 'context', is => 'ro', required => 1,
isa => Enum[qw(base source set change column)];
( run in 0.412 second using v1.01-cache-2.11-cpan-49f99fa48dc )