Sha256: fb512d063ff9709e69ae5e773b647a2efa2a6d06ab3f87cdcbaf0b3a119bf551
Contents?: true
Size: 479 Bytes
Versions: 5
Compression:
Stored size: 479 Bytes
Contents
class BillboardTopSongs::Song attr_accessor :name, :position, :artist, :last_week, :peak, :weeks_on, :url @@all = [] def self.find_by_index(indx) self.all[indx] end def initialize(url=nil, name=nil, artist=nil, position=nil, last_week=nil, peak=nil, weeks_on=nil) @url = url @name = name @artist = artist @position = position @last_week = last_week @peak = peak @weeks_on = weeks_on @@all << self end def self.all @@all end end
Version data entries
5 entries across 5 versions & 1 rubygems