lib/sportradar/api.rb in sportradar-api-0.17.3 vs lib/sportradar/api.rb in sportradar-api-0.17.4

- old
+ new

@@ -83,10 +83,12 @@ end def self.api_key(api, access_level = 'trial') ENV.fetch("SPORTRADAR_#{api.to_s.upcase.gsub('-', '_')}#{"_#{access_level.upcase}" if access_level != 'trial'}", ENV.fetch("SPORTRADAR_#{api.to_s.upcase}_API_KEY", - "api_key missing for #{api}" + ENV.fetch("SPORTRADAR_#{api.to_s.upcase}", + "api_key missing for #{api}" + ) ) ) end def self.version(api)