Class: Patriot::Worker::Servlet::APIServletBase
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Patriot::Worker::Servlet::APIServletBase
- Defined in:
- lib/patriot/worker/servlet/api_servlet_base.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.configure(worker, config) ⇒ Object
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 |