Class: HttpStub::Server::Application

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

Instance Method Summary collapse

Constructor Details

#initializeApplication

Returns a new instance of Application.



22
23
24
25
26
27
28
29
# File 'lib/http_stub/server/application.rb', line 22

def initialize
  super()
  @stub_registry         = HttpStub::Server::Stub::Registry.new
  @scenario_registry     = HttpStub::Server::Registry.new("scenario")
  @match_result_registry = HttpStub::Server::Registry.new("match result")
  @stub_controller       = HttpStub::Server::Stub::Controller.new(@stub_registry, @match_result_registry)
  @scenario_controller   = HttpStub::Server::Scenario::Controller.new(@scenario_registry, @stub_registry)
end