Class: Sportradar::Nhl::Boxscore
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- Sportradar::Nhl::Boxscore
- Defined in:
- lib/sportradar/nhl/boxscore.rb
Instance Method Summary collapse
-
#initialize(event_id:) ⇒ Boxscore
constructor
A new instance of Boxscore.
- #path ⇒ Object
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/nhl/boxscore.rb', line 4 def initialize(event_id:) @event_id = event_id end |
Instance Method Details
#path ⇒ Object
8 9 10 |
# File 'lib/sportradar/nhl/boxscore.rb', line 8 def path "games/#{event_id}/boxscore.json" end |