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

- old
+ new

@@ -9,20 +9,25 @@ @league = 'ncaafb' raise ::Sportradar::Api::Error::InvalidAccessLevel unless allowed_access_levels.include? access_level @access_level = access_level end + def sim! + @access_level = 'sim-t' + self + end + def default_year default_date.year end def default_date Date.today - 90 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_NCAAFB'] || ENV['RACK_ENV'] || ENV['RAILS_ENV']) == 'production' 'p' else 't' end end