Module: NBA::ShotChartLeagueWide
- Defined in:
- lib/nba/shot_chart_league_wide.rb
Overview
Provides methods to retrieve league-wide shot chart data
Constant Summary collapse
- LEAGUE_WIDE =
Result set name for league-wide shot data
"LeagueWide".freeze
- REGULAR_SEASON =
Season type constant for regular season
"Regular Season".freeze
- PLAYOFFS =
Season type constant for playoffs
"Playoffs".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves league-wide shot statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves league-wide shot statistics
33 34 35 36 37 |
# File 'lib/nba/shot_chart_league_wide.rb', line 33 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) path = build_path(season, season_type) response = client.get(path) parse_response(response) end |