class Grater

Attributes

ingredients[RW]
method[RW]
recipe_name[RW]
recipe_url[RW]

Public Class Methods

all() click to toggle source
# File lib/recipe-grater/grater.rb, line 21
def self.all
    @@all
end
new(recipe_hash) click to toggle source
# File lib/recipe-grater/grater.rb, line 7
def initialize(recipe_hash)
    recipe_hash.each {|key, value| self.send(("#{key}="), value)}
    @@all << self
end
recipe_creator(recipe_index) click to toggle source
# File lib/recipe-grater/grater.rb, line 12
def self.recipe_creator(recipe_index)
    recipe_index.each {|recipe| self.new(recipe)}
end

Public Instance Methods

recipe_details_creator(recipe_details_hash) click to toggle source
# File lib/recipe-grater/grater.rb, line 16
def recipe_details_creator(recipe_details_hash)
    recipe_details_hash.each {|key, value| self.send(("#{key}="), value)}
    self
end