NAME
MealMaster::Recipe - Represent a MealMaster Recipe
SYNOPSIS
foreach my $r (@recipes) {
print "Title: " . $r->title . "\n";
print "Categories: " . join(", ", sort @{$r->categories}) . "\n";
print "Yield: " . $r->yield . "\n";
print "Directions: " . $r->directions . "\n";
print "Ingredients:\n";
foreach my $i (@{$r->ingredients}) {
print " " . $i->quantity .
" " . $i->measure .
" " . $i->product .
"\n";
}
DESCRIPTION
MealMaster::Recipe represents a MealMaster recipe.
METHODS
categories
Returns an array reference of the categories that the recipe is filed under:
print "Categories: " . join(", ", sort @{$r->categories}) . "\n";
directions
Returns the directions for making the recipe:
print "Directions: " . $r->directions . "\n";
ingredients
Returns a list of ingredients for making the recipe:
print "Ingredients:\n";
foreach my $i (@{$r->ingredients}) {
print " " . $i->quantity .
" " . $i->measure .
" " . $i->product .
"\n";
}
title
Returns the title of the recipe:
print "Title: " . $r->title . "\n";
Returns the yield of the recipe:
print "Yield: " . $r->yield . "\n";
SEE ALSO
MealMaster, MealMaster::Ingredient
AUTHOR
Leon Brocard, <acme@astray.com>
COPYRIGHT
Copyright (C) 2005, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.