Module: NBA::LeagueDashLineups
- Defined in:
- lib/nba/league_dash_lineups.rb
Overview
Provides methods to retrieve league-wide lineup statistics
Constant Summary collapse
- LINEUPS =
Result set name for lineups
"Lineups".freeze
- REGULAR_SEASON =
Regular season type constant
"Regular Season".freeze
- PLAYOFFS =
Playoffs season type constant
"Playoffs".freeze
- PER_GAME =
Per game mode constant
"PerGame".freeze
- TOTALS =
Totals mode constant
"Totals".freeze
- PER_100 =
Per 100 possessions mode constant
"Per100Possessions".freeze
- FIVE_MAN =
Group quantity for 5-man lineups
5- FOUR_MAN =
Group quantity for 4-man lineups
4- THREE_MAN =
Group quantity for 3-man lineups
3- TWO_MAN =
Group quantity for 2-man lineups
2
Class Method Summary collapse
-
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, group_quantity: FIVE_MAN, client: CLIENT) ⇒ Collection
Retrieves all league-wide lineup statistics.
Class Method Details
.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, group_quantity: FIVE_MAN, client: CLIENT) ⇒ Collection
Retrieves all league-wide lineup statistics
64 65 66 67 68 69 |
# File 'lib/nba/league_dash_lineups.rb', line 64 def self.all(season: Utils.current_season, season_type: REGULAR_SEASON, per_mode: PER_GAME, group_quantity: FIVE_MAN, client: CLIENT) path = build_path(season, season_type: season_type, per_mode: per_mode, group_quantity: group_quantity) response = client.get(path) parse_response(response) end |