App::vaporcalc::Role::Calc - Calculate measurements for an e-liquid recipe
# See App::vaporcalc::Recipe, App::vaporcalc::RecipeResultSet use Moo; with 'App::vaporcalc::Role::Calc';
This role provides a "calc" method that produces an App::vaporcalc::Result object.
See App::vaporcalc::Recipe, App::vaporcalc::RecipeResultSet.
Consumers need to implement the following methods:
# Method Returning target_quantity (ml) base_nic_per_ml (mg/ml) base_nic_type ('PG' or 'VG') target_nic_per_ml (mg/ml) target_pg (percentage) target_vg (percentage) flavor_array (an array of App::vaporcalc::Flavor objects)
Performs the calculation & returns an App::vaporcalc::Result object.
Jon Portnoy <avenj@cobaltirc.org>
To install App::vaporcalc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::vaporcalc
CPAN shell
perl -MCPAN -e shell install App::vaporcalc
For more information on module installation, please visit the detailed CPAN module installation guide.