Module: NBA::ScoreboardV3
- Defined in:
- lib/nba/scoreboard_v3.rb
Overview
Provides methods to retrieve NBA scoreboard data using the V3 endpoint
Class Method Summary collapse
-
.games(date: Date.today, league: League::NBA, client: CLIENT) ⇒ Collection
Retrieves games for a specific date.
Class Method Details
.games(date: Date.today, league: League::NBA, client: CLIENT) ⇒ Collection
Retrieves games for a specific date
23 24 25 26 27 28 |
# File 'lib/nba/scoreboard_v3.rb', line 23 def self.games(date: Date.today, league: League::NBA, client: CLIENT) league_id = Utils.extract_league_id(league) path = "scoreboardv3?GameDate=#{date}&LeagueID=#{league_id}" response = client.get(path) parse_scoreboard_response(response) end |