lib/sportradar/api/soccer.rb in sportradar-api-0.1.19 vs lib/sportradar/api/soccer.rb in sportradar-api-0.1.21

- old
+ new

@@ -84,10 +84,14 @@ "/soccer-#{access_level}#{version}/#{league}/#{path}" end end def api_key - Sportradar::Api.api_key_params("soccer_#{league}") + if access_level == 'p' + Sportradar::Api.api_key_params("soccer_#{league}", "production") + else + Sportradar::Api.api_key_params("soccer_#{league}") + end end def version Sportradar::Api.version("soccer") end