lib/sportradar/api/basketball/nba.rb in sportradar-api-0.10.6 vs lib/sportradar/api/basketball/nba.rb in sportradar-api-0.10.7
- old
+ new
@@ -27,9 +27,18 @@
else
@error = response
end
end
+ def series_schedule(season_year = default_year)
+ response = get request_url("series/#{season_year}/pst/schedule")
+ if response.success?
+ Sportradar::Api::Basketball::Nba::Season.new(response.to_h, api: self)
+ else
+ @error = response
+ end
+ end
+
def league_hierarchy
response = get request_url("league/hierarchy")
if response.success?
Sportradar::Api::Basketball::Nba::Hierarchy.new(response.to_h, api: self)
else
\ No newline at end of file