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









                                                            



                        
   
class Song
  attr_reader :title, :time, :composers, :performers, :notes

  def initialize(params)
    @title = params['title']
    @time = params['time']
    @composers = params['composers']
    @performers = params['performers']
    @notes = params['notes']
  end

  def to_s
    "#{title} (#{time})"
  end
end