api_client.rb 211 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class ApiClient API_URL = 'http://150.165.204.30:5000/api' def self.check_status begin ApiClient::Client.post(ApiClient::API_URL) rescue return false end return true end end