class Marta::Server::DialogServlet

Servlet to be used to understand is dialog answer provided or not

@note It is believed that no user will use it

Public Instance Methods

do_GET(request, response) click to toggle source

What our server will do on get request

# File lib/marta/server.rb, line 41
def do_GET (request, response)
  ServerStore.has_answer = nil
  response.status = 200
  response.content_type = "text/plain"
  ServerStore.has_answer = case request.path
                           when '/dialog/got_answer'
                             true
                           when '/dialog/not_answer'
                             false
                           end
  response.body = "#{Thread.current.object_id}"
end