summaryrefslogblamecommitdiffstats
path: root/lib/member.rb
blob: 0fb69b526e90f0fe3cccbd3ca94bd99235a82c37 (plain) (tree)
1
2
3
4
5
6
7
8







                                      



                                      
   
class Member
  attr_reader :name, :instrument, :age

  def initialize(params)
    @name = params['name']
    @instrument = params['instrument']
    @age = params['age'].to_i
  end

  def to_s
    [name, instrument, age].join(', ')
  end
end