The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::vaporcalc::Result - A calculated App::vaporcalc::Recipe result

SYNOPSIS

  use App::vaporcalc::Recipe;
  my $result = App::vaporcalc::Recipe->new(
    # See App::vaporcalc::Recipe
  );

  my $vg_ml     = $result->vg;
  my $pg_ml     = $result->pg;
  my $nic_ml    = $result->nic;
  my $flavor_ml = $result->flavor;
  my $total_ml  = $result->total;

DESCRIPTION

A calculated result produced by App::vaporcalc::Recipe.

All quantities are in ml.

ATTRIBUTES

vg

The required amount of VG filler.

pg

The required amount of PG filler.

nic

The required amount of nicotine base solution.

flavors

A typed List::Objects::WithUtils::Array containing a list of tuples in the form of:

  name => quantity_in_ml

METHODS

total

The calculated total.

flavor_total

The calculated total flavor.

CONSUMES

App::vaporcalc::Role::Store

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>