Class: Stattleship::Penalties

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

Instance Method Summary collapse

Methods inherited from Endpoint

#data, fetch

Instance Method Details

#populateObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/stattleship/penalties.rb', line 3

def populate
  penalties.each do |penalty|
    populate_games(penalty)

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

    populate_players(penalty)
    populate_player_teams(penalty)
    populate_opponents(penalty)
  end
end