lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.7 vs lib/sportradar/api/football/nfl/api.rb in sportradar-api-0.11.8
- old
+ new
@@ -3,10 +3,10 @@
module Football
class Nfl
class Api < Request
attr_accessor :league, :access_level, :error
- def initialize(access_level = 'ot')
+ def initialize(access_level = default_access_level)
@league = 'nfl'
raise ::Sportradar::Api::Error::InvalidAccessLevel unless allowed_access_levels.include? access_level
@access_level = access_level
end