Class: Stattleship::TeamGameLogs

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

Instance Method Summary collapse

Methods inherited from Endpoint

#data, fetch

Instance Method Details

#populateObject


41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/stattleship/team_game_logs.rb', line 41

def populate
  team_game_logs.each do |team_game_log|
    populate_games(team_game_log)

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

    populate_opponents(team_game_log)
    populate_officials(team_game_log)
    populate_teams(team_game_log)
  end
end