lib/sportradar/api/nfl.rb in sportradar-api-0.1.32 vs lib/sportradar/api/nfl.rb in sportradar-api-0.1.33
- old
+ new
@@ -20,10 +20,10 @@
Sportradar::Api::Nfl::Season.new response["season"] if response.success? && response["season"]
end
def weekly_depth_charts(week = 1, year = Date.today.year, season = "reg" )
response = get request_url("seasontd/#{ week_path(year, season, week) }/depth_charts")
- Sportradar::Api::Nfl::DepthChart.new response
+ Sportradar::Api::Nfl::LeagueDepthChart.new response
end
def weekly_injuries(week = 1, year = Date.today.year, season = "reg")
response = get request_url("seasontd/#{ week_path(year, season, week) }/injuries")
Sportradar::Api::Nfl::Season.new response["season"] if response.success? && response["season"]