NAME
Math::Util::CalculatedValue::Validatable - math adjustment, which can containe another adjustments with validation
DESCRIPTION
Represents an adjustment to a value (which can contain additional adjustments) with validation.
SYNOPSIS
my
$tid
= Math::Util::CalculatedValue::Validatable->new({
name
=>
'time_in_days'
,
description
=>
'Duration in days'
,
set_by
=>
'Contract'
,
base_amount
=> 0,
});
my
$tiy
= Math::Util::CalculatedValue::Validatable->new({
name
=>
'time_in_years'
,
description
=>
'Duration in years'
,
set_by
=>
'Contract'
,
base_amount
=> 1,
});
my
$dpy
= Math::Util::CalculatedValue::Validatable->new({
name
=>
'days_per_year'
,
description
=>
'days in a year'
,
set_by
=>
'Contract'
,
base_amount
=> 365,
});
$tid
->include_adjustment(
'reset'
,
$tiy
);
$tid
->include_adjustment(
'multiply'
,
$dpy
);
$tid
->amount;
BUILD
Bulder args to add validation method
AUTHOR
binary.com, <rakesh at binary.com>
BUGS
Please report any bugs or feature requests to bug-math-util-calculatedvalue at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Math-Util-CalculatedValue. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Math::Util::CalculatedValue
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-Util-CalculatedValue
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN