lib/sportradar/api/basketball/ncaamb/tournament.rb in sportradar-api-0.13.21 vs lib/sportradar/api/basketball/ncaamb/tournament.rb in sportradar-api-0.13.22
- old
+ new
@@ -89,11 +89,11 @@
get_schedule
end
# summary
def get_summary
- data = api.get_data(path_summary)
+ data = api.get_data(path_summary).to_h
ingest_summary(data)
end
def queue_summary
url, headers, options, timeout = api.get_request_info(path_summary)
{url: url, headers: headers, params: options, timeout: timeout, callback: method(:ingest_summary)}
@@ -103,10 +103,10 @@
data
end
# schedule
def get_schedule
- data = api.get_data(path_schedule)
+ data = api.get_data(path_schedule).to_h
ingest_schedule(data)
end
def queue_schedule
url, headers, options, timeout = api.get_request_info(path_schedule)
{url: url, headers: headers, params: options, timeout: timeout, callback: method(:ingest_schedule)}