module NbaStats::PlayByPlay
Constants
- PLAY_BY_PLAY_PATH
The path of the playbyplay API
Public Instance Methods
play_by_play( game_id, start_period=0, end_period=0 )
click to toggle source
Calls the playbyplay API and returns a PlayByPlay
resource.
@param game_id [String] @param start_period [Integer] @param end_period [Integer] @return [NbaStats::Resources::PlayByPlay]
# File lib/nba_stats/stats/play_by_play.rb, line 16 def play_by_play( game_id, start_period=0, end_period=0 ) NbaStats::Resources::PlayByPlay.new( get(PLAY_BY_PLAY_PATH, { :GameID => game_id, :StartPeriod => start_period, :EndPeriod => end_period }) ) end