class Eatable::Restaurant
Attributes
address[RW]
name[RW]
phone[RW]
website[RW]
Public Class Methods
all()
click to toggle source
# File lib/eatable/restaurant.rb, line 12 def self.all @@all end
new(hash)
click to toggle source
# File lib/eatable/restaurant.rb, line 7 def initialize(hash) hash.each {|k, v| self.send('#{k}=', v)} @@all << self end
reset()
click to toggle source
# File lib/eatable/restaurant.rb, line 16 def self.reset self.class.all.clear end