Module: NBA::PlayerCareerByCollege
- Defined in:
- lib/nba/player_career_by_college.rb
Overview
Provides methods to retrieve player career stats by college
Constant Summary collapse
- PER_GAME =
Per mode constant for per game stats
"PerGame".freeze
- TOTALS =
Per mode constant for totals
"Totals".freeze
Class Method Summary collapse
-
.find(college:, per_mode: TOTALS, season: nil, client: CLIENT) ⇒ Collection
Retrieves career statistics for all players from a specific college.
Class Method Details
.find(college:, per_mode: TOTALS, season: nil, client: CLIENT) ⇒ Collection
Retrieves career statistics for all players from a specific college
34 35 36 37 |
# File 'lib/nba/player_career_by_college.rb', line 34 def self.find(college:, per_mode: TOTALS, season: nil, client: CLIENT) path = build_path(college, per_mode, season) ResponseParser.parse(client.get(path)) { |data| build_stat(data) } end |