Module: NbaStats::BoxScoreAdvanced
- Included in:
- Client
- Defined in:
- lib/nba_stats/stats/box_score_advanced.rb
Constant Summary collapse
- BOX_SCORE_ADVANCED_PATH =
The path of the boxscoreadvanced API
'/stats/boxscoreadvanced'
Instance Method Summary collapse
-
#box_score_advanced(game_id, range_type = 0, start_period = 0, end_period = 0, start_range = 0, end_range = 0) ⇒ NbaStats::Resources::BoxScoreAdvanced
Calls the boxscoreadvanced API and returns a BoxScoreAdvanced resource.
Instance Method Details
#box_score_advanced(game_id, range_type = 0, start_period = 0, end_period = 0, start_range = 0, end_range = 0) ⇒ NbaStats::Resources::BoxScoreAdvanced
Calls the boxscoreadvanced API and returns a BoxScoreAdvanced resource.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/nba_stats/stats/box_score_advanced.rb', line 19 def box_score_advanced( game_id, range_type=0, start_period=0, end_period=0, start_range=0, end_range=0 ) NbaStats::Resources::BoxScoreAdvanced.new( get(BOX_SCORE_ADVANCED_PATH, { :GameID => game_id, :RangeType => range_type, :StartPeriod => start_period, :EndPeriod => end_period, :StartRange => start_range, :EndRange => end_range }) ) end |