Class: HttpStub::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/http_stub/server.rb

Instance Method Summary collapse

Constructor Details

#initializeServer

Returns a new instance of Server.



9
10
11
12
13
14
15
16
# File 'lib/http_stub/server.rb', line 9

def initialize
  super()
  @stub_registry = HttpStub::Models::Registry.new("stub")
  @stub_activator_registry = HttpStub::Models::Registry.new("stub_activator")
  @stub_controller = HttpStub::Controllers::StubController.new(@stub_registry)
  @stub_activator_controller =
      HttpStub::Controllers::StubActivatorController.new(@stub_activator_registry, @stub_registry)
end