Class: Stattleship::ScoringPlays

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/stattleship/scoring_plays.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
16
# File 'lib/stattleship/scoring_plays.rb', line 3

def populate
  scoring_plays.each do |scoring_play|
    populate_games(scoring_play)

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

    populate_teams(scoring_play)
    populate_opponents(scoring_play)

    populate_scoring_players(scoring_play)
  end
end