Module: NBA::LeagueDashPtTeamDefend
- Defined in:
- lib/nba/league_dash_pt_team_defend.rb
Overview
Provides methods to retrieve league-wide team defensive tracking statistics
Constant Summary collapse
- LEAGUE_DASH_PT_TEAM_DEFEND =
Result set name for league dash PT team defend
"LeagueDashPtTeamDefend".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
- OVERALL =
Overall defense category constant
"Overall".freeze
- THREE_POINTERS =
3 Pointers defense category constant
"3 Pointers".freeze
- TWO_POINTERS =
2 Pointers defense category constant
"2 Pointers".freeze
- LESS_THAN_6FT =
Less than 6ft defense category constant
"Less Than 6Ft".freeze
- LESS_THAN_10FT =
Less than 10ft defense category constant
"Less Than 10Ft".freeze
- GREATER_THAN_15FT =
Greater than 15ft defense category constant
"Greater Than 15Ft".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, defense_category: OVERALL, client: CLIENT) ⇒ Collection
Retrieves all league-wide team defensive tracking statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, defense_category: OVERALL, client: CLIENT) ⇒ Collection
Retrieves all league-wide team defensive tracking statistics
68 69 70 71 72 73 |
# File 'lib/nba/league_dash_pt_team_defend.rb', line 68 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, defense_category: OVERALL, client: CLIENT) path = build_path(season, season_type: season_type, per_mode: per_mode, defense_category: defense_category) response = client.get(path) parse_response(response) end |