Module: HttpStub::Server::Application::Routes::Memory

Included in:
Application
Defined in:
lib/http_stub/server/application/routes/memory.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(application) ⇒ Object


13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/http_stub/server/application/routes/memory.rb', line 13

def self.included(application)
  application.instance_eval do

    namespace "/http_stub/memory" do

      get do
        haml :stubs, {}, stubs: @memory_controller.find_stubs
      end

    end

  end
end

Instance Method Details

#initializeObject


8
9
10
11
# File 'lib/http_stub/server/application/routes/memory.rb', line 8

def initialize
  super()
  @memory_controller = HttpStub::Server::Memory::Controller.new(@server_memory)
end