Class: RecentGames::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/LoLStat/RecentGames.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(game_list, game_num) ⇒ Game

Returns a new instance of Game.



12
13
14
15
# File 'lib/LoLStat/RecentGames.rb', line 12

def initialize(game_list, game_num)
	@data = game_list["games"][game_num]
	@gameId = @data["gameId"]
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



11
12
13
# File 'lib/LoLStat/RecentGames.rb', line 11

def data
  @data
end

#gameIdObject (readonly)

Returns the value of attribute gameId.



11
12
13
# File 'lib/LoLStat/RecentGames.rb', line 11

def gameId
  @gameId
end