class BestsellingGames::Game
Attributes
price[RW]
publisher[RW]
title[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/bestselling_games/game.rb, line 14 def self.all @@all end
new(title, price, publisher, url)
click to toggle source
# File lib/bestselling_games/game.rb, line 6 def initialize(title, price, publisher, url) self.title = title self.price = price self.publisher = publisher self.url = url @@all << self end