lib/sportradar/api/request.rb in sportradar-api-0.11.0 vs lib/sportradar/api/request.rb in sportradar-api-0.11.1
- old
+ new
@@ -4,9 +4,14 @@
include HTTParty
# attr_reader :url, :headers, :timeout, :api_key
+ def sim!
+ @access_level = 'sim'
+ self
+ end
+
def get_data(url)
data = get request_url(url)
if data.is_a?(::Sportradar::Api::Error)
puts request_url(url)
puts