Class: SteamUpcoming::Game
- Inherits:
-
Object
- Object
- SteamUpcoming::Game
- Defined in:
- lib/steam-upcoming/game.rb
Overview
The SteamUpcoming::Game class is responsible for creating new Game objects with the information collected from the SteamUpcoming::Scraper class.
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#about ⇒ Object
Returns the value of attribute about.
-
#details ⇒ Object
Returns the value of attribute details.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platforms ⇒ Object
Returns the value of attribute platforms.
-
#release_date ⇒ Object
Returns the value of attribute release_date.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Game
constructor
A new instance of Game.
Constructor Details
#initialize ⇒ Game
Returns a new instance of Game.
9 10 11 |
# File 'lib/steam-upcoming/game.rb', line 9 def initialize @@all << self end |
Instance Attribute Details
#about ⇒ Object
Returns the value of attribute about.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def about @about end |
#details ⇒ Object
Returns the value of attribute details.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def details @details end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def name @name end |
#platforms ⇒ Object
Returns the value of attribute platforms.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def platforms @platforms end |
#release_date ⇒ Object
Returns the value of attribute release_date.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def release_date @release_date end |
#tags ⇒ Object
Returns the value of attribute tags.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/steam-upcoming/game.rb', line 5 def url @url end |