lib/sportradar/api/odds/api.rb in sportradar-api-0.20.0 vs lib/sportradar/api/odds/api.rb in sportradar-api-0.20.1
- old
+ new
@@ -2,10 +2,10 @@
module Api
module Odds
class Api < Request
attr_accessor :access_level, :language_code, :error, :base_path
- def initialize(base_path: base_path, access_level: default_access_level, language_code: 'en', **args)
+ def initialize(base_path:, access_level: default_access_level, language_code: 'en', **args)
@language_code = language_code
@access_level = access_level
@base_path = base_path
raise Sportradar::Api::Error::InvalidAccessLevel unless allowed_access_levels.include? @access_level
end