Module: NbaStats::DraftCombineSpotShooting
- Included in:
- Client
- Defined in:
- lib/nba_stats/stats/draft_combine_spot_shooting.rb
Constant Summary collapse
- DRAFT_COMBINE_SPOT_SHOOTING_PATH =
The path of the draftcombinespotshooting API
'/stats/draftcombinespotshooting'
Instance Method Summary collapse
-
#draft_combine_spot_shooting(season_year, league_id = NbaStats::Constants::LEAGUE_ID_NBA) ⇒ NbaStats::Resources::DraftCombineSpotShooting
Calls the draftcombinespotshooting API and returns a DraftCombineSpotShooting resource.
Instance Method Details
#draft_combine_spot_shooting(season_year, league_id = NbaStats::Constants::LEAGUE_ID_NBA) ⇒ NbaStats::Resources::DraftCombineSpotShooting
Calls the draftcombinespotshooting API and returns a DraftCombineSpotShooting resource.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/nba_stats/stats/draft_combine_spot_shooting.rb', line 15 def draft_combine_spot_shooting( season_year, league_id=NbaStats::Constants::LEAGUE_ID_NBA ) NbaStats::Resources::DraftCombineSpotShooting.new( get(DRAFT_COMBINE_SPOT_SHOOTING_PATH, { :LeagueID => league_id, :SeasonYear => season_year }) ) end |