summaryrefslogblamecommitdiffstats
path: root/lib/contact.rb
blob: 0d8701284d588923d76f3b875d8aa2eb366dbcab (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                          






                              

     
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