Module: NBA::CumeStatsPlayerGames
- Defined in:
- lib/nba/cume_stats_player_games.rb
Overview
Provides methods to retrieve cumulative stats player games
Defined Under Namespace
Modules: PathBuilder
Constant Summary collapse
- RESULTS =
Result set name for cumulative stats player games
"CumeStatsPlayerGames".freeze
Class Method Summary collapse
-
.all(player:, season:, season_type: "Regular Season", league: League::NBA, location: nil, outcome: nil, vs_conference: nil, vs_division: nil, vs_team: nil, client: CLIENT) ⇒ Collection
Retrieves all cumulative stats player games for specified criteria.
Class Method Details
.all(player:, season:, season_type: "Regular Season", league: League::NBA, location: nil, outcome: nil, vs_conference: nil, vs_division: nil, vs_team: nil, client: CLIENT) ⇒ Collection
Retrieves all cumulative stats player games for specified criteria
32 33 34 35 36 37 38 39 |
# File 'lib/nba/cume_stats_player_games.rb', line 32 def self.all(player:, season:, season_type: "Regular Season", league: League::NBA, location: nil, outcome: nil, vs_conference: nil, vs_division: nil, vs_team: nil, client: CLIENT) opts = {player: player, season: season, season_type: season_type, league: league, location: location, outcome: outcome, vs_conference: vs_conference, vs_division: vs_division, vs_team: vs_team} path = PathBuilder.build(opts) ResponseParser.parse(client.get(path), result_set: RESULTS) { |data| build_entry(data) } end |