lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.0 vs lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.1

- old
+ new

@@ -19,11 +19,11 @@ end def default_season 'reg' end def default_access_level - if (ENV['SPORTRADAR_ENV'] || ENV['SPORTRADAR_ENV_MLB'] || ENV['RACK_ENV'] || ENV['RAILS_ENV']) == 'production' + if (ENV['SPORTRADAR_ENV'] || ENV['SPORTRADAR_ENV_NFL'] || ENV['RACK_ENV'] || ENV['RAILS_ENV']) == 'production' 'p' else 'ot' end end @@ -37,10 +37,10 @@ def request_url(path) "/nfl-#{access_level}#{version}/#{path}" end def api_key - if access_level != 'ot' + if !['ot', 'sim'].include?(access_level) ::Sportradar::Api.api_key_params('nfl', 'production') else ::Sportradar::Api.api_key_params('nfl') end end