Module: NBA::AllTimeLeaders
- Defined in:
- lib/nba/all_time_leaders.rb
Overview
Provides methods to retrieve all-time NBA statistical leaders
Constant Summary collapse
- PTS =
Points category
"PTS".freeze
- REB =
Rebounds category
"REB".freeze
- AST =
Assists category
"AST".freeze
- STL =
Steals category
"STL".freeze
- BLK =
Blocks category
"BLK".freeze
- FGM =
Field goals made category
"FGM".freeze
- FGA =
Field goals attempted category
"FGA".freeze
- FG3M =
Three pointers made category
"FG3M".freeze
- FG3A =
Three pointers attempted category
"FG3A".freeze
- FTM =
Free throws made category
"FTM".freeze
- FTA =
Free throws attempted category
"FTA".freeze
- GP =
Games played category
"GP".freeze
- TOV =
Turnovers category
"TOV".freeze
- PF =
Personal fouls category
"PF".freeze
- OREB =
Offensive rebounds category
"OREB".freeze
- DREB =
Defensive rebounds category
"DREB".freeze
- REGULAR_SEASON =
Regular season type
"Regular Season".freeze
- PLAYOFFS =
Playoffs season type
"Playoffs".freeze
- TOTALS =
Totals per mode
"Totals".freeze
- PER_GAME =
Per game per mode
"PerGame".freeze
Class Method Summary collapse
-
.find(category:, season_type: REGULAR_SEASON, per_mode: TOTALS, limit: 10, client: CLIENT) ⇒ Collection
Retrieves all-time leaders for a statistical category.
Class Method Details
.find(category:, season_type: REGULAR_SEASON, per_mode: TOTALS, limit: 10, client: CLIENT) ⇒ Collection
Retrieves all-time leaders for a statistical category
95 96 97 98 99 |
# File 'lib/nba/all_time_leaders.rb', line 95 def self.find(category:, season_type: REGULAR_SEASON, per_mode: TOTALS, limit: 10, client: CLIENT) path = build_path(season_type, per_mode, limit) response = client.get(path) parse_response(response, category, limit) end |