Module: NBA::LeagueDashPlayerStats
- Defined in:
- lib/nba/league_dash_player_stats.rb
Overview
Provides methods to retrieve league-wide player statistics
Constant Summary collapse
- LEAGUE_DASH_PLAYER_STATS =
Result set name for league dash player stats
"LeagueDashPlayerStats".freeze
- REGULAR_SEASON =
Season type constant for regular season
"Regular Season".freeze
- PLAYOFFS =
Season type constant for playoffs
"Playoffs".freeze
- PER_GAME =
Per mode constant for per game stats
"PerGame".freeze
- TOTALS =
Per mode constant for totals
"Totals".freeze
- PER_36 =
Per mode constant for per 36 minutes
"Per36".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves league-wide player statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves league-wide player statistics
46 47 48 49 50 |
# File 'lib/nba/league_dash_player_stats.rb', line 46 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) path = build_path(season, season_type, per_mode) response = client.get(path) parse_response(response, season) end |