Module: Scales::Server::Dispatch

Defined in:
lib/scales-server/dispatch.rb,
lib/scales-server/dispatch/job.rb,
lib/scales-server/dispatch/lookup.rb,
lib/scales-server/dispatch/enqueue.rb,
lib/scales-server/dispatch/request.rb,
lib/scales-server/dispatch/response.rb

Defined Under Namespace

Modules: Enqueue, Job, Lookup, Request, Response

Class Method Summary collapse

Class Method Details

.request(env) ⇒ Object



12
13
14
# File 'lib/scales-server/dispatch.rb', line 12

def request(env)
  if is_get_request?(env) then Lookup.resource(env) else Enqueue.request(env) end
end