Module: NBA::Scoreboard
- Defined in:
- lib/nba/scoreboard.rb
Overview
Provides methods to retrieve NBA scoreboard data
Class Method Summary collapse
-
.games(date: Date.today, client: CLIENT) ⇒ Collection
Retrieves games for a specific date.
Class Method Details
.games(date: Date.today, client: CLIENT) ⇒ Collection
Retrieves games for a specific date
21 22 23 24 25 |
# File 'lib/nba/scoreboard.rb', line 21 def self.games(date: Date.today, client: CLIENT) path = "scoreboardv2?GameDate=#{date}&LeagueID=00&DayOffset=0" response = client.get(path) parse_scoreboard_response(response) end |