Module: AhlScraper::Scoreboards

Defined in:
lib/ahl_scraper/scoreboards.rb,
lib/ahl_scraper/resources/scoreboards/team.rb,
lib/ahl_scraper/fetchers/scoreboards/data_fetcher.rb

Defined Under Namespace

Classes: DataFetcher, Team

Class Method Summary collapse

Class Method Details

.list(start_date, end_date) ⇒ Object



10
11
12
# File 'lib/ahl_scraper/scoreboards.rb', line 10

def list(start_date, end_date)
  DataFetcher.new(start_date: start_date, end_date: end_date).call&.map { |game| Scoreboard.new(game) }
end