Module: NBA::InfographicFanDuelPlayer
- Defined in:
- lib/nba/infographic_fan_duel_player.rb
Overview
Provides methods to retrieve FanDuel infographic player statistics
Constant Summary collapse
- FAN_DUEL_PLAYER =
Result set name for FanDuel player stats
"FanDuelPlayer".freeze
Class Method Summary collapse
-
.find(game:, client: CLIENT) ⇒ Collection
Retrieves FanDuel infographic statistics for all players in a game.
Class Method Details
.find(game:, client: CLIENT) ⇒ Collection
Retrieves FanDuel infographic statistics for all players in a game
23 24 25 26 27 28 |
# File 'lib/nba/infographic_fan_duel_player.rb', line 23 def self.find(game:, client: CLIENT) game_id = Utils.extract_id(game) path = "infographicfanduelplayer?GameID=#{game_id}" response = client.get(path) parse_response(response, game_id) end |