Class: Sportradar::Mlb::PlayerProfile
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- Sportradar::Mlb::PlayerProfile
- Defined in:
- lib/sportradar/mlb/player_profile.rb
Instance Method Summary collapse
-
#initialize(player_id:) ⇒ PlayerProfile
constructor
A new instance of PlayerProfile.
- #path ⇒ Object
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
#path ⇒ Object
8 9 10 |
# File 'lib/sportradar/mlb/player_profile.rb', line 8 def path "players/#{player_id}/profile.json" end |