lib/sportradar/api/football/ncaafb/api.rb in sportradar-api-0.11.14 vs lib/sportradar/api/football/ncaafb/api.rb in sportradar-api-0.11.15

- old
+ new

@@ -10,11 +10,11 @@ raise ::Sportradar::Api::Error::InvalidAccessLevel unless allowed_access_levels.include? access_level @access_level = access_level end def sim! - @access_level = 'sim-t' + @access_level = "sim-#{default_access_level}" self end def default_year default_date.year @@ -42,10 +42,10 @@ def request_url(path) "/ncaafb-#{access_level}#{version}/#{path}" end def api_key - if !['t', 'sim-t'].include?(access_level) || (default_access_level == 'rt' && access_level == 'sim-t') + if !['t', 'sim-t'].include?(access_level) ::Sportradar::Api.api_key_params('ncaafb', 'production') else ::Sportradar::Api.api_key_params('ncaafb') end end