Module: NBA::LeagueDashPlayerShotLocations
- Defined in:
- lib/nba/league_dash_player_shot_locations.rb
Overview
Provides methods to retrieve league-wide player shot location statistics
Constant Summary collapse
- SHOT_LOCATIONS =
Result set name for shot locations
"ShotLocations".freeze
- REGULAR_SEASON =
Regular season type constant
"Regular Season".freeze
- PLAYOFFS =
Playoffs season type constant
"Playoffs".freeze
- PER_GAME =
Per game mode constant
"PerGame".freeze
- TOTALS =
Totals mode constant
"Totals".freeze
- BY_ZONE =
By 5-foot zone distance range
"By Zone".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, distance_range: BY_ZONE, client: CLIENT) ⇒ Collection
Retrieves all league-wide player shot location statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, distance_range: BY_ZONE, client: CLIENT) ⇒ Collection
Retrieves all league-wide player shot location statistics
48 49 50 51 52 53 |
# File 'lib/nba/league_dash_player_shot_locations.rb', line 48 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, distance_range: BY_ZONE, client: CLIENT) path = build_path(season, season_type: season_type, per_mode: per_mode, distance_range: distance_range) response = client.get(path) parse_response(response) end |