Class: CaptchedToDeath::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/captched_to_death/server.rb

Class Method Summary collapse

Class Method Details

.statusObject

Current server status



4
5
6
7
8
# File 'lib/captched_to_death/server.rb', line 4

def self.status
  response = RestClient.get "#{API_URI}/status", :accept => :json
  fail ServiceError unless response.code == 200
  JSON.parse(response) 
end