Class: Stattleship::Rankings
- Defined in:
- lib/stattleship/rankings.rb
Constant Summary collapse
- RANKINGS_PATH =
'rankings'.freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Endpoint
Class Method Details
.fetch(params:) ⇒ Object
6 7 8 9 |
# File 'lib/stattleship/rankings.rb', line 6 def self.fetch(params:) super(path: RANKINGS_PATH, params: params) end |
Instance Method Details
#populate ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/stattleship/rankings.rb', line 11 def populate rankings.each do |ranking| populate_games(ranking) games.each do |game| populate_game(game) end populate_players(ranking) populate_player_teams(ranking) populate_teams(ranking) end end |