Sha256: 923f654db80b0ce2932f95ee70f99607a8c36dba3fa3782fa5764fc4e3e457e6
Contents?: true
Size: 469 Bytes
Versions: 11
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true require "ahl_scraper/fetchers/team_games/data_fetcher" module AhlScraper module TeamGames @season_games = {} class << self def list(team_id, season_id) @season_games["#{team_id}-#{season_id}"] ||= DataFetcher.new(team_id, season_id).call&.map do |team_data| TeamGameListItem.new(team_data, { team_id: team_id }) end @season_games["#{team_id}-#{season_id}"] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems