Class: Stattleship::GameLogs

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

Instance Method Summary collapse

Methods inherited from Endpoint

#data, fetch

Instance Method Details

#populateObject



45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/stattleship/game_logs.rb', line 45

def populate
  game_logs.each do |game_log|
    populate_games(game_log)

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

    populate_players(game_log)
    populate_player_teams(game_log)
    populate_opponents(game_log)
  end
end