Class: SteamClient::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/steam-client/game.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/steam-client/game.rb', line 3

def id
  @id
end

#logoObject

Returns the value of attribute logo.



3
4
5
# File 'lib/steam-client/game.rb', line 3

def 
  @logo
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/steam-client/game.rb', line 3

def name
  @name
end