Module: NBA::LeagueDashTeamStats
- Defined in:
- lib/nba/league_dash_team_stats.rb
Overview
Provides methods to retrieve league-wide team statistics
Constant Summary collapse
- LEAGUE_DASH_TEAM_STATS =
Result set name
"LeagueDashTeamStats".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
- PER_100 =
Per 100 possessions mode
"Per100Possessions".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves league-wide team statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves league-wide team statistics
45 46 47 48 49 |
# File 'lib/nba/league_dash_team_stats.rb', line 45 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 |