summaryrefslogtreecommitdiffstats
path: root/lib/contact.rb
blob: 1e6ba4ba7a0959582ad9a004baefcd1155b01e1a (plain) (blame)
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