Module: NBA::TeamDashPtReb

Defined in:
lib/nba/team_dash_pt_reb.rb

Overview

Provides methods to retrieve team tracking rebound statistics

Constant Summary collapse

NUM_CONTESTED =

Result set name for number contested rebounding

Returns:

  • (String)

    the result set name

"NumContestedRebounding".freeze
OVERALL =

Result set name for overall rebounding

Returns:

  • (String)

    the result set name

"OverallRebounding".freeze
REB_DISTANCE =

Result set name for rebound distance rebounding

Returns:

  • (String)

    the result set name

"RebDistanceRebounding".freeze
SHOT_DISTANCE =

Result set name for shot distance rebounding

Returns:

  • (String)

    the result set name

"ShotDistanceRebounding".freeze
SHOT_TYPE =

Result set name for shot type rebounding

Returns:

  • (String)

    the result set name

"ShotTypeRebounding".freeze

Class Method Summary collapse

Class Method Details

.num_contested(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection

Retrieves number contested rebounding stats for a team

Examples:

stats = NBA::TeamDashPtReb.num_contested(team: 1610612744)

Parameters:

  • team (Integer, Team)

    the team ID or Team object

  • season (Integer) (defaults to: Utils.current_season)

    the season year

  • season_type (String) (defaults to: "Regular Season")

    the season type

  • per_mode (String) (defaults to: "PerGame")

    the per mode

  • client (Client) (defaults to: CLIENT)

    the API client to use

Returns:

  • (Collection)

    a collection of rebound statistics



43
44
45
46
# File 'lib/nba/team_dash_pt_reb.rb', line 43

def self.num_contested(team:, season: Utils.current_season, season_type: "Regular Season",
  per_mode: "PerGame", client: CLIENT)
  fetch_stats(team, season, season_type, per_mode, NUM_CONTESTED, client: client)
end

.overall(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection

Retrieves overall rebounding stats for a team

Examples:

stats = NBA::TeamDashPtReb.overall(team: 1610612744)

Parameters:

  • team (Integer, Team)

    the team ID or Team object

  • season (Integer) (defaults to: Utils.current_season)

    the season year

  • season_type (String) (defaults to: "Regular Season")

    the season type

  • per_mode (String) (defaults to: "PerGame")

    the per mode

  • client (Client) (defaults to: CLIENT)

    the API client to use

Returns:

  • (Collection)

    a collection of rebound statistics



59
60
61
62
# File 'lib/nba/team_dash_pt_reb.rb', line 59

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: client)
end

.reb_distance(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection

Retrieves rebound distance rebounding stats for a team

Examples:

stats = NBA::TeamDashPtReb.reb_distance(team: 1610612744)

Parameters:

  • team (Integer, Team)

    the team ID or Team object

  • season (Integer) (defaults to: Utils.current_season)

    the season year

  • season_type (String) (defaults to: "Regular Season")

    the season type

  • per_mode (String) (defaults to: "PerGame")

    the per mode

  • client (Client) (defaults to: CLIENT)

    the API client to use

Returns:

  • (Collection)

    a collection of rebound statistics



75
76
77
78
# File 'lib/nba/team_dash_pt_reb.rb', line 75

def self.reb_distance(team:, season: Utils.current_season, season_type: "Regular Season",
  per_mode: "PerGame", client: CLIENT)
  fetch_stats(team, season, season_type, per_mode, REB_DISTANCE, client: client)
end

.shot_distance(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection

Retrieves shot distance rebounding stats for a team

Examples:

stats = NBA::TeamDashPtReb.shot_distance(team: 1610612744)

Parameters:

  • team (Integer, Team)

    the team ID or Team object

  • season (Integer) (defaults to: Utils.current_season)

    the season year

  • season_type (String) (defaults to: "Regular Season")

    the season type

  • per_mode (String) (defaults to: "PerGame")

    the per mode

  • client (Client) (defaults to: CLIENT)

    the API client to use

Returns:

  • (Collection)

    a collection of rebound statistics



91
92
93
94
# File 'lib/nba/team_dash_pt_reb.rb', line 91

def self.shot_distance(team:, season: Utils.current_season, season_type: "Regular Season",
  per_mode: "PerGame", client: CLIENT)
  fetch_stats(team, season, season_type, per_mode, SHOT_DISTANCE, client: client)
end

.shot_type(team:, season: Utils.current_season, season_type: "Regular Season", per_mode: "PerGame", client: CLIENT) ⇒ Collection

Retrieves shot type rebounding stats for a team

Examples:

stats = NBA::TeamDashPtReb.shot_type(team: 1610612744)

Parameters:

  • team (Integer, Team)

    the team ID or Team object

  • season (Integer) (defaults to: Utils.current_season)

    the season year

  • season_type (String) (defaults to: "Regular Season")

    the season type

  • per_mode (String) (defaults to: "PerGame")

    the per mode

  • client (Client) (defaults to: CLIENT)

    the API client to use

Returns:

  • (Collection)

    a collection of rebound statistics



107
108
109
110
# File 'lib/nba/team_dash_pt_reb.rb', line 107

def self.shot_type(team:, season: Utils.current_season, season_type: "Regular Season",
  per_mode: "PerGame", client: CLIENT)
  fetch_stats(team, season, season_type, per_mode, SHOT_TYPE, client: client)
end