class Catpedia::Cat
Attributes
grooming[RW]
health[RW]
history[RW]
name[RW]
personality[RW]
summary[RW]
Public Class Methods
all()
click to toggle source
# File lib/catpedia/cat.rb, line 14 def self.all @@all end
new(details)
click to toggle source
# File lib/catpedia/cat.rb, line 7 def initialize(details) @@all << self details.each do |key, value| #for each details hash, create keys and values in the instance of Cat self.send("#{key}=", value) end end