Module: NBA::LeagueDashTeamClutch
- Defined in:
- lib/nba/league_dash_team_clutch.rb
Overview
Provides methods to retrieve league-wide clutch team statistics
Constant Summary collapse
- LEAGUE_DASH_TEAM_CLUTCH =
Result set name for league dash team clutch
"LeagueDashTeamClutch".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_100 =
Per mode constant for per 100 possessions
"Per100Possessions".freeze
- LAST_5_MINUTES =
Clutch time constant for last 5 minutes
"Last 5 Minutes".freeze
- LAST_4_MINUTES =
Clutch time constant for last 4 minutes
"Last 4 Minutes".freeze
- LAST_3_MINUTES =
Clutch time constant for last 3 minutes
"Last 3 Minutes".freeze
- LAST_2_MINUTES =
Clutch time constant for last 2 minutes
"Last 2 Minutes".freeze
- LAST_1_MINUTE =
Clutch time constant for last 1 minute
"Last 1 Minute".freeze
- AHEAD_OR_BEHIND =
Ahead/behind constant for ahead or behind
"Ahead or Behind".freeze
- BEHIND_OR_TIED =
Ahead/behind constant for behind or tied
"Behind or Tied".freeze
- AHEAD_OR_TIED =
Ahead/behind constant for ahead or tied
"Ahead or Tied".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, clutch_time: LAST_5_MINUTES, ahead_behind: AHEAD_OR_BEHIND, point_diff: 5, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves league-wide clutch team statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, clutch_time: LAST_5_MINUTES, ahead_behind: AHEAD_OR_BEHIND, point_diff: 5, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves league-wide clutch team statistics
80 81 82 83 84 85 86 87 |
# File 'lib/nba/league_dash_team_clutch.rb', line 80 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, clutch_time: LAST_5_MINUTES, ahead_behind: AHEAD_OR_BEHIND, point_diff: 5, per_mode: PER_GAME, client: CLIENT) opts = {season_type: season_type, clutch_time: clutch_time, ahead_behind: ahead_behind, point_diff: point_diff, per_mode: per_mode} path = build_path(season, opts) response = client.get(path) parse_response(response, season) end |