class WsdlMapperTesting::Middlewares::FakeDispatcher
Public Class Methods
new()
click to toggle source
# File lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb, line 4 def initialize @requests = {} end
Public Instance Methods
call(operation, request)
click to toggle source
# File lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb, line 12 def call(operation, request) [operation, request, @requests[request]] end
fake_request(request, http_response)
click to toggle source
# File lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb, line 8 def fake_request(request, http_response) @requests[request] = http_response end