Module: NBA::PlayerEstimatedMetrics
- Defined in:
- lib/nba/player_estimated_metrics.rb
Overview
Provides methods to retrieve player estimated metrics
Constant Summary collapse
- REGULAR_SEASON =
Season type constant for regular season
"Regular Season".freeze
- PLAYOFFS =
Season type constant for playoffs
"Playoffs".freeze
- RESULT_SET_NAME =
Result set name for player estimated metrics
"PlayerEstimatedMetrics".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves estimated metrics for all players.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves estimated metrics for all players
33 34 35 36 |
# File 'lib/nba/player_estimated_metrics.rb', line 33 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) path = build_path(season, season_type) ResponseParser.parse(client.get(path), result_set: RESULT_SET_NAME) { |data| build_stat(data) } end |