class WholefoodsRecipe::Recipe
Attributes
description[RW]
ingredients[RW]
name[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/wholefoods_recipe/recipe.rb, line 16 def self.all @@all end
new(name, url)
click to toggle source
# File lib/wholefoods_recipe/recipe.rb, line 5 def initialize(name, url) @name = name @url = url @@all << self end
Public Instance Methods
set_additonal_attribute(description, ingredients)
click to toggle source
# File lib/wholefoods_recipe/recipe.rb, line 11 def set_additonal_attribute(description, ingredients) @description = description @ingredients = ingredients end