lib/chillout/dispatcher.rb in chillout-0.3.0 vs lib/chillout/dispatcher.rb in chillout-0.4.0
- old
+ new
@@ -11,7 +11,14 @@
def send_creations(creations)
@server_side.send_creations(creations)
rescue HttpClient::NotSent
raise SendCreationsFailed.new
end
+
+ def check_api_connection
+ response = @server_side.send_check
+ CheckResult.new(response)
+ rescue HttpClient::NotReceived => e
+ CheckResult.new(e)
+ end
end
end