Class: Stattleship::Stats

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/stattleship/stats.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#data, fetch

Instance Method Details

#populateObject


17
18
19
20
21
22
23
24
25
# File 'lib/stattleship/stats.rb', line 17

def populate
  stats.each do |stat|
    populate_games(stat)

    games.each do |game|
      populate_game(game)
    end
  end
end