Module: NBA::LeaguePlayerOnDetails
- Defined in:
- lib/nba/league_player_on_details.rb
Overview
Provides methods to retrieve league-wide player on court details
Constant Summary collapse
- PLAYERS_ON_COURT =
Result set name for players on court stats
"PlayersOnCourtLeaguePlayerDetails".freeze
- REGULAR_SEASON =
Regular season type
"Regular Season".freeze
- PLAYOFFS =
Playoffs season type
"Playoffs".freeze
- PER_GAME =
Per game mode
"PerGame".freeze
- TOTALS =
Totals mode
"Totals".freeze
- BASE =
Base measure type
"Base".freeze
Class Method Summary collapse
-
.all(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, measure_type: BASE, client: CLIENT) ⇒ Collection
Retrieves league-wide player on court details for a team.
Class Method Details
.all(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, measure_type: BASE, client: CLIENT) ⇒ Collection
Retrieves league-wide player on court details for a team
47 48 49 50 51 52 |
# File 'lib/nba/league_player_on_details.rb', line 47 def self.all(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, measure_type: BASE, client: CLIENT) team_id = Utils.extract_id(team) path = build_path(team_id, season, season_type, per_mode, measure_type) response = client.get(path) parse_response(response) end |