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.



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

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