Class: Sportradar::Nba::Boxscore

Inherits:
ApiRequest show all
Defined in:
lib/sportradar/nba/boxscore.rb

Instance Method Summary collapse

Methods inherited from ApiRequest

#client, #endpoint, fetch, #fetch, #league, save, #save

Constructor Details

#initialize(event_id:) ⇒ Boxscore

Returns a new instance of Boxscore.



4
5
6
# File 'lib/sportradar/nba/boxscore.rb', line 4

def initialize(event_id:)
  @event_id = event_id
end

Instance Method Details

#pathObject



8
9
10
# File 'lib/sportradar/nba/boxscore.rb', line 8

def path
  "games/#{event_id}/boxscore.json"
end