Class: WsdlMapperTesting::Middlewares::FakeDispatcher
- Inherits:
-
Object
- Object
- WsdlMapperTesting::Middlewares::FakeDispatcher
- Defined in:
- lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb
Instance Method Summary (collapse)
- - (Object) call(operation, request)
- - (Object) fake_request(request, http_response)
-
- (FakeDispatcher) initialize
constructor
A new instance of FakeDispatcher.
Constructor Details
- (FakeDispatcher) initialize
Returns a new instance of FakeDispatcher
4 5 6 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb', line 4 def initialize @requests = {} end |
Instance Method Details
- (Object) call(operation, request)
12 13 14 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb', line 12 def call(operation, request) [operation, request, @requests[request]] end |
- (Object) fake_request(request, http_response)
8 9 10 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_dispatcher.rb', line 8 def fake_request(request, http_response) @requests[request] = http_response end |