Module: NBA::TeamEstimatedMetrics
- Defined in:
- lib/nba/team_estimated_metrics.rb
Overview
Provides methods to retrieve team 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 team estimated metrics
"TeamEstimatedMetrics".freeze
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves estimated metrics for all teams.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves estimated metrics for all teams
36 37 38 39 |
# File 'lib/nba/team_estimated_metrics.rb', line 36 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 |