class MealFinder::Recipes
Attributes
details[RW]
name[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/meal_finder/recipes.rb, line 24 def self.all @@recipe_collection end
new(name = nil, url = nil)
click to toggle source
# File lib/meal_finder/recipes.rb, line 13 def initialize (name = nil, url = nil) @name = name @url = url end
Public Instance Methods
save()
click to toggle source
# File lib/meal_finder/recipes.rb, line 20 def save @@recipe_collection << self end