Class: SteamUpcoming::Game

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeGame

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

#aboutObject

Returns the value of attribute about.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def about
  @about
end

#detailsObject

Returns the value of attribute details.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def details
  @details
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def name
  @name
end

#platformsObject

Returns the value of attribute platforms.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def platforms
  @platforms
end

#release_dateObject

Returns the value of attribute release_date.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def release_date
  @release_date
end

#tagsObject

Returns the value of attribute tags.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def tags
  @tags
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/steam-upcoming/game.rb', line 5

def url
  @url
end