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