Module: NBA::PlayerDashboard
- Defined in:
- lib/nba/player_dashboard.rb
Overview
Provides methods to retrieve player 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_36 =
Per mode constant for per 36 minutes
"Per36".freeze
Class Method Summary collapse
-
.clutch_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by clutch splits.
-
.game_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by game splits.
-
.general_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by general splits.
-
.last_n_games(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by last N games.
-
.shooting_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by shooting splits.
-
.team_performance(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by team performance.
-
.year_over_year(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by year over year.
Class Method Details
.clutch_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by clutch splits
59 60 61 |
# File 'lib/nba/player_dashboard.rb', line 59 def self.clutch_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbyclutch", client: client) end |
.game_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by game splits
91 92 93 |
# File 'lib/nba/player_dashboard.rb', line 91 def self.game_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbygamesplits", client: client) end |
.general_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by general splits
43 44 45 |
# File 'lib/nba/player_dashboard.rb', line 43 def self.general_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbygeneralsplits", client: client) end |
.last_n_games(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by last N games
107 108 109 |
# File 'lib/nba/player_dashboard.rb', line 107 def self.last_n_games(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbylastngames", client: client) end |
.shooting_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by shooting splits
75 76 77 |
# File 'lib/nba/player_dashboard.rb', line 75 def self.shooting_splits(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbyshootingsplits", client: client) end |
.team_performance(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by team performance
139 140 141 |
# File 'lib/nba/player_dashboard.rb', line 139 def self.team_performance(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbyteamperformance", client: client) end |
.year_over_year(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) ⇒ Collection
Retrieves player dashboard by year over year
123 124 125 |
# File 'lib/nba/player_dashboard.rb', line 123 def self.year_over_year(player:, season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, client: CLIENT) fetch_dashboard(player, season, season_type, per_mode, "playerdashboardbyyearoveryear", client: client) end |