Sha256: ca65a3840291f4590b4663edb2d03576bc908d61fa722c389b8b8dfe4d0a7c2f
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
class BillboardHot100::Song attr_accessor :rank, :title, :artist, :last_week, :peak_position, :weeks_on_chart, :lyrics, :award @@all = [] def initialize(rank=nil, title=nil, artist=nil, last_week=nil, peak_position=nil, weeks_on_chart=nil, lyrics=nil, award=nil) @rank = rank @title = title @artist = artist @last_week = last_week @peak_position = peak_position @weeks_on_chart = weeks_on_chart @lyrics = lyrics @award = award @@all << self end def self.all @@all end end
Version data entries
4 entries across 4 versions & 1 rubygems