Class: Patriot::Worker::Servlet::APIServletBase

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/patriot/worker/servlet/api_servlet_base.rb

Direct Known Subclasses

JobAPIServlet, WorkerAPIServlet

Class Method Summary collapse

Class Method Details

.configure(worker, config) ⇒ Object

Parameters:



27
28
29
30
31
32
# File 'lib/patriot/worker/servlet/api_servlet_base.rb', line 27

def self.configure(worker, config)
  @@worker = worker
  @@config = config
  @@username  = config.get(Patriot::Util::Config::USERNAME_KEY, "")
  @@password  = config.get(Patriot::Util::Config::PASSWORD_KEY, "")
end