Module: NbaStats::BoxScoreMisc
- Included in:
- Client
- Defined in:
- lib/nba_stats/stats/box_score_misc.rb
Constant Summary collapse
- BOX_SCORE_MISC_PATH =
The path of the boxscoremisc API
'/stats/boxscoremisc'
Instance Method Summary collapse
-
#box_score_misc(game_id, range_type = 0, start_period = 0, end_period = 0, start_range = 0, end_range = 0) ⇒ NbaStats::Resources::BoxScoreMisc
Calls the boxscoremisc API and returns a BoxScoreMisc resource.
Instance Method Details
#box_score_misc(game_id, range_type = 0, start_period = 0, end_period = 0, start_range = 0, end_range = 0) ⇒ NbaStats::Resources::BoxScoreMisc
Calls the boxscoremisc API and returns a BoxScoreMisc 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_misc.rb', line 19 def box_score_misc( game_id, range_type=0, start_period=0, end_period=0, start_range=0, end_range=0 ) NbaStats::Resources::BoxScoreMisc.new( get(BOX_SCORE_MISC_PATH, { :GameID => game_id, :RangeType => range_type, :StartPeriod => start_period, :EndPeriod => end_period, :StartRange => start_range, :EndRange => end_range }) ) end |