Class: Sportradar::Mlb::PlayerProfile

Inherits:
ApiRequest
  • Object
show all
Defined in:
lib/sportradar/mlb/player_profile.rb

Instance Method Summary collapse

Methods inherited from ApiRequest

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

Constructor Details

#initialize(player_id:) ⇒ PlayerProfile

Returns a new instance of PlayerProfile.



4
5
6
# File 'lib/sportradar/mlb/player_profile.rb', line 4

def initialize(player_id:)
  @player_id = player_id
end

Instance Method Details

#pathObject



8
9
10
# File 'lib/sportradar/mlb/player_profile.rb', line 8

def path
  "players/#{player_id}/profile.json"
end