Method: MIDB::API::Controller#initialize
- Defined in:
- lib/midb/server_controller.rb
#initialize(args, hooks = nil) ⇒ Controller
Constructor for this controller.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/midb/server_controller.rb', line 50 def initialize(args, hooks=nil) # Default values # # @see #http_status # @see #args # @see #config # @see #port @http_status = "200 OK" @args = args @config = Hash.new() @port = 8081 if hooks == nil # At some point someone should register this. @hooks = MIDB::API::Hooks.new else @hooks = hooks end end |