Class: Stattleship::TopStats

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

Instance Method Summary collapse

Methods inherited from Endpoint

#data, fetch

Instance Method Details

#populateObject



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/stattleship/top_stats.rb', line 13

def populate
  top_stats.each do |top_stat|
    populate_games(top_stat)

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

    populate_players(top_stat)
    populate_player_teams(top_stat)
  end
end