Module: NBA::TeamDashboard
- Defined in:
- lib/nba/team_dashboard.rb
Overview
Provides methods to retrieve team dashboard data with various splits
Constant Summary collapse
- REGULAR_SEASON =
Season type constant for regular season
"Regular Season".freeze
- PLAYOFFS =
Season type constant for playoffs
"Playoffs".freeze
- PER_GAME =
Per mode constant for per game stats
"PerGame".freeze
- TOTALS =
Per mode constant for totals
"Totals".freeze
- PER_100 =
Per mode constant for per 100 possessions
"Per100Possessions".freeze
Class Method Summary collapse
-
.clutch_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by clutch splits.
-
.game_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by game splits.
-
.general_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by general splits.
-
.last_n_games(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by last N games.
-
.lineups(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team lineup data.
-
.shooting_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by shooting splits.
-
.team_performance(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by team performance.
-
.year_over_year(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by year over year.
Class Method Details
.clutch_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by clutch splits
91 92 93 |
# File 'lib/nba/team_dashboard.rb', line 91 def self.clutch_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbyclutch", client: client) end |
.game_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by game splits
107 108 109 |
# File 'lib/nba/team_dashboard.rb', line 107 def self.game_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbygamesplits", client: client) end |
.general_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by general splits
43 44 45 |
# File 'lib/nba/team_dashboard.rb', line 43 def self.general_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbygeneralsplits", client: client) end |
.last_n_games(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by last N games
123 124 125 |
# File 'lib/nba/team_dashboard.rb', line 123 def self.last_n_games(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbylastngames", client: client) end |
.lineups(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team lineup data
75 76 77 |
# File 'lib/nba/team_dashboard.rb', line 75 def self.lineups(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashlineups", client: client) end |
.shooting_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by shooting splits
59 60 61 |
# File 'lib/nba/team_dashboard.rb', line 59 def self.shooting_splits(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbyshootingsplits", client: client) end |
.team_performance(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by team performance
139 140 141 |
# File 'lib/nba/team_dashboard.rb', line 139 def self.team_performance(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbyteamperformance", client: client) end |
.year_over_year(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves team dashboard by year over year
155 156 157 |
# File 'lib/nba/team_dashboard.rb', line 155 def self.year_over_year(team:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(team, season, season_type, per_mode, "teamdashboardbyyearoveryear", client: client) end |