lib/sportradar/api/basketball/team.rb in sportradar-api-0.13.18 vs lib/sportradar/api/basketball/team.rb in sportradar-api-0.13.19

- old
+ new

@@ -113,10 +113,10 @@ def queue_roster url, headers, options, timeout = api.get_request_info(path_roster) {url: url, headers: headers, params: options, timeout: timeout, callback: method(:ingest_roster)} end - def get_season_stats(year = Date.today.year) + def get_season_stats(year = api.default_year) data = api.get_data(path_season_stats(year)).to_h ingest_season_stats(data) end def ingest_season_stats(data) parse_season_stats(data)