Class: Sportradar::Nfl::TeamDepthChart
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- Sportradar::Nfl::TeamDepthChart
- Defined in:
- lib/sportradar/nfl/team_depth_chart.rb
Instance Method Summary collapse
-
#initialize(team_abbreviation:) ⇒ TeamDepthChart
constructor
A new instance of TeamDepthChart.
- #path ⇒ Object
Methods inherited from ApiRequest
#client, #endpoint, fetch, #fetch, #league, save, #save
Constructor Details
#initialize(team_abbreviation:) ⇒ TeamDepthChart
Returns a new instance of TeamDepthChart.
4 5 6 |
# File 'lib/sportradar/nfl/team_depth_chart.rb', line 4 def initialize(team_abbreviation:) @team_abbreviation = team_abbreviation end |
Instance Method Details
#path ⇒ Object
8 9 10 |
# File 'lib/sportradar/nfl/team_depth_chart.rb', line 8 def path "teams/#{team_abbreviation}/depthchart.json" end |