Module: NBA::TeamPlayerOnOffSummary
- Defined in:
- lib/nba/team_player_on_off_summary.rb
Overview
Provides methods to retrieve team on/off court summary statistics
Constant Summary collapse
- OVERALL =
Result set name for overall summary
"OverallTeamPlayerOnOffSummary".freeze
- PLAYERS_ON =
Result set name for players on court summary
"PlayersOnCourtTeamPlayerOnOffSummary".freeze
- PLAYERS_OFF =
Result set name for players off court summary
"PlayersOffCourtTeamPlayerOnOffSummary".freeze
Class Method Summary collapse
-
.overall(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves overall team on/off court summary statistics.
-
.players_off_court(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves summary statistics when opponent players are off the court.
-
.players_on_court(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves summary statistics when opponent players are on the court.
Class Method Details
.overall(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves overall team on/off court summary statistics
31 32 33 |
# File 'lib/nba/team_player_on_off_summary.rb', line 31 def self.overall(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) fetch_stats(team, season, season_type, per_mode, OVERALL, client:) end |
.players_off_court(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves summary statistics when opponent players are off the court
59 60 61 |
# File 'lib/nba/team_player_on_off_summary.rb', line 59 def self.players_off_court(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) fetch_stats(team, season, season_type, per_mode, PLAYERS_OFF, client:) end |
.players_on_court(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves summary statistics when opponent players are on the court
45 46 47 |
# File 'lib/nba/team_player_on_off_summary.rb', line 45 def self.players_on_court(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) fetch_stats(team, season, season_type, per_mode, PLAYERS_ON, client:) end |