lib/sportradar/api/basketball/nba.rb in sportradar-api-0.11.0 vs lib/sportradar/api/basketball/nba.rb in sportradar-api-0.11.1
- old
+ new
@@ -96,11 +96,11 @@
"/nba-#{access_level}#{version}/#{path}"
end
end
def api_key
- if access_level != 't'
+ if !['t', 'sim'].include?(access_level)
Sportradar::Api.api_key_params('nba', 'production')
else
Sportradar::Api.api_key_params('nba')
end
end
@@ -108,10 +108,10 @@
def version
Sportradar::Api.version('nba')
end
def allowed_access_levels
- %w[p t]
+ %w[p t sim]
end
def allowed_seasons
["pre", "reg", "pst"]
end
\ No newline at end of file