Module: NBA::LiveBoxScore
- Defined in:
- lib/nba/live_box_score.rb
Overview
Provides methods to retrieve live box score data
Class Method Summary collapse
-
.find(game:, client: LIVE_CLIENT) ⇒ Collection
Retrieves live box score for a game.
Class Method Details
.find(game:, client: LIVE_CLIENT) ⇒ Collection
Retrieves live box score for a game
20 21 22 23 24 25 |
# File 'lib/nba/live_box_score.rb', line 20 def self.find(game:, client: LIVE_CLIENT) game_id = Utils.extract_id(game) path = "boxscore/boxscore_#{game_id}.json" response = client.get(path) parse_response(response, game_id) end |