Class: CaptchedToDeath::Server
- Inherits:
-
Object
- Object
- CaptchedToDeath::Server
- Defined in:
- lib/captched_to_death/server.rb
Class Method Summary collapse
-
.status ⇒ Object
Current server status.
Class Method Details
.status ⇒ Object
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 |