Module: NBA::PlayerDashPtReb
- Defined in:
- lib/nba/player_dash_pt_reb.rb
Overview
Provides methods to retrieve player tracking rebound statistics
Constant Summary collapse
- OVERALL =
Result set name for overall rebounding
"OverallRebounding".freeze
- NUM_CONTESTED =
Result set name for number contested rebounding
"NumContestedRebounding".freeze
- REB_DISTANCE =
Result set name for rebound distance rebounding
"RebDistanceRebounding".freeze
- SHOT_DISTANCE =
Result set name for shot distance rebounding
"ShotDistanceRebounding".freeze
- SHOT_TYPE =
Result set name for shot type rebounding
"ShotTypeRebounding".freeze
Class Method Summary collapse
-
.num_contested(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves number contested rebounding statistics for a player.
-
.overall(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves overall rebounding statistics for a player.
-
.reb_distance(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves rebound distance rebounding statistics for a player.
-
.shot_distance(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves shot distance rebounding statistics for a player.
-
.shot_type(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves shot type rebounding statistics for a player.
Class Method Details
.num_contested(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves number contested rebounding statistics for a player
64 65 66 67 68 |
# File 'lib/nba/player_dash_pt_reb.rb', line 64 def self.num_contested(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) = {season_type: season_type, per_mode: per_mode, result_set: NUM_CONTESTED} fetch_stats(player, team, season, , client: client) end |
.overall(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves overall rebounding statistics for a player
45 46 47 48 49 |
# File 'lib/nba/player_dash_pt_reb.rb', line 45 def self.overall(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) = {season_type: season_type, per_mode: per_mode, result_set: OVERALL} fetch_stats(player, team, season, , client: client) end |
.reb_distance(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves rebound distance rebounding statistics for a player
83 84 85 86 87 |
# File 'lib/nba/player_dash_pt_reb.rb', line 83 def self.reb_distance(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) = {season_type: season_type, per_mode: per_mode, result_set: REB_DISTANCE} fetch_stats(player, team, season, , client: client) end |
.shot_distance(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves shot distance rebounding statistics for a player
102 103 104 105 106 |
# File 'lib/nba/player_dash_pt_reb.rb', line 102 def self.shot_distance(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) = {season_type: season_type, per_mode: per_mode, result_set: SHOT_DISTANCE} fetch_stats(player, team, season, , client: client) end |
.shot_type(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection
Retrieves shot type rebounding statistics for a player
121 122 123 124 125 |
# File 'lib/nba/player_dash_pt_reb.rb', line 121 def self.shot_type(player:, team: 0, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) = {season_type: season_type, per_mode: per_mode, result_set: SHOT_TYPE} fetch_stats(player, team, season, , client: client) end |