Module: NBA::LeagueSeasonMatchups
- Defined in:
- lib/nba/league_season_matchups.rb
Overview
Provides methods to retrieve league-wide season matchup statistics
Constant Summary collapse
- SEASON_MATCHUPS =
Result set name for season matchups
"SeasonMatchups".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
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, off_player: nil, def_player: nil, off_team: nil, def_team: nil, client: CLIENT) ⇒ Collection
Retrieves all league-wide season matchup statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, off_player: nil, def_player: nil, off_team: nil, def_team: nil, client: CLIENT) ⇒ Collection
Retrieves all league-wide season matchup statistics
47 48 49 50 51 52 53 |
# File 'lib/nba/league_season_matchups.rb', line 47 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, off_player: nil, def_player: nil, off_team: nil, def_team: nil, client: CLIENT) path = build_path(season, season_type: season_type, per_mode: per_mode, off_player: off_player, def_player: def_player, off_team: off_team, def_team: def_team) response = client.get(path) parse_response(response) end |