module NbaStats::BoxScore
Constants
- BOX_SCORE_PATH
The path of the boxscore API
Public Instance Methods
box_score( game_id, range_type=0, start_period=0, end_period=0, start_range=0, end_range=0 )
click to toggle source
Calls the boxscore API and returns a BoxScore
resource.
@param game_id [String] @param range_type [Integer] @param start_period [Integer] @param end_period [Integer] @param start_range [Integer] @param end_range [Integer] @return [NbaStats::Resources::BoxScore]
# File lib/nba_stats/stats/box_score.rb, line 20 def box_score( game_id, range_type=0, start_period=0, end_period=0, start_range=0, end_range=0 ) NbaStats::Resources::BoxScore.new( get(BOX_SCORE_PATH, { :GameID => game_id, :RangeType => range_type, :StartPeriod => start_period, :EndPeriod => end_period, :StartRange => start_range, :EndRange => end_range }) ) end