1c48f48
dce607a
1 2 3
4 5 6 7 8 9 10
11 12
class Contact attr_reader :name, :addr, :phone, :email def initialize(params = nil) if params @name = params['name'] @addr = params['addr'] @phone = params['phone'] @email = params['email'] end end end