Class: SteamClient::Game
- Inherits:
-
Object
- Object
- SteamClient::Game
- Defined in:
- lib/steam-client/game.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Game
constructor
A new instance of Game.
Constructor Details
#initialize(opts = {}) ⇒ Game
Returns a new instance of Game.
5 6 7 8 9 |
# File 'lib/steam-client/game.rb', line 5 def initialize(opts = {}) @id = opts['appID'] @name = opts['name'] @logo = opts['logo'] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/steam-client/game.rb', line 3 def id @id end |
#logo ⇒ Object
Returns the value of attribute logo.
3 4 5 |
# File 'lib/steam-client/game.rb', line 3 def logo @logo end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/steam-client/game.rb', line 3 def name @name end |