Method: MIDB::API::Engine#initialize
- Defined in:
- lib/midb/serverengine_controller.rb
#initialize(db, stat, cnf, hooks = nil) ⇒ Engine
Constructor
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/midb/serverengine_controller.rb', line 42 def initialize(db, stat, cnf, hooks=nil) @config = cnf @db = db @http_status = stat if hooks == nil @hooks = MIDB::API::Hooks.new else @hooks = hooks end end |