class CategoryCreator

Attributes

category_name[RW]
category_url[RW]

Public Class Methods

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