lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.69 vs lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.12.0

- old
+ new

@@ -37,10 +37,10 @@ def request_url(path) "/nfl-#{access_level}#{version}/#{path}" end def api_key - if !['ot', 'sim'].include?(access_level) || (default_access_level == 'o' && access_level == 'sim') + if !['ot', 'sim'].include?(access_level) || (access_level == 'sim' && default_access_level == 'o') ::Sportradar::Api.api_key_params('nfl', 'production') else ::Sportradar::Api.api_key_params('nfl') end end