Module: AhlScraper::RosterPlayers

Defined in:
lib/ahl_scraper/roster_players.rb

Class Method Summary collapse

Class Method Details

.retrieve_all(team_id, season_id) ⇒ Object



6
7
8
# File 'lib/ahl_scraper/roster_players.rb', line 6

def retrieve_all(team_id, season_id)
  TeamRosterDataFetcher.new(team_id, season_id).call&.map { |player| RosterPlayer.new(player, team_id, season_id) }
end