MealMaster::Ingredient - Represent a MealMaster ingredient


MealMaster documentation Contained in the MealMaster distribution.

Index


Code Index:

NAME

Top

MealMaster::Ingredient - Represent a MealMaster ingredient

SYNOPSIS

Top

    print "Ingredients:\n";
    foreach my $i (@{$r->ingredients}) {
      print "  " . $i->quantity .
             " " . $i->measure  .
             " " . $i->product . 
             "\n";
    }

DESCRIPTION

Top

MealMaster::Ingredient represents an ingredient in a MealMaster recipe.

METHODS

Top

measure

Returns the measurement unit of the ingredient:

  print $i->measure . "\n";

product

Returns the ingredient name:

  print $i->product . "\n";

quantity

Returns the quantity of measures needed:

  print $i->quantity . "\n";

SEE ALSO

Top

MealMaster, MealMaster::Recipe

AUTHOR

Top

Leon Brocard, <acme@astray.com>

COPYRIGHT

Top


MealMaster documentation Contained in the MealMaster distribution.

package MealMaster::Ingredient;
use strict;
use base qw(Class::Accessor::Chained::Fast);
__PACKAGE__->mk_accessors(qw(quantity measure product));

1;

__END__