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