lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.8 vs lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.9

- old
+ new

@@ -20,11 +20,11 @@ def default_season 'reg' end def default_access_level if (ENV['SPORTRADAR_ENV'] || ENV['SPORTRADAR_ENV_NFL'] || ENV['RACK_ENV'] || ENV['RAILS_ENV']) == 'production' - 'p' + 'o' else 'ot' end end @@ -37,11 +37,11 @@ def request_url(path) "/nfl-#{access_level}#{version}/#{path}" end def api_key - if !['ot', 'sim'].include?(access_level) || (default_access_level == 'p' && access_level == 'sim') + if !['ot', 'sim'].include?(access_level) || (default_access_level == 'o' && access_level == 'sim') ::Sportradar::Api.api_key_params('nfl', 'production') else ::Sportradar::Api.api_key_params('nfl') end end @@ -49,10 +49,10 @@ def version ::Sportradar::Api.version('nfl') end def allowed_access_levels - %w[rt p s b t ot sim] + %w[rt o p s b t ot sim] end def allowed_seasons ["pre", "reg", "pst"] end