Class: Cucumber::WireSupport::RequestHandler
- Inherits:
-
Object
- Object
- Cucumber::WireSupport::RequestHandler
show all
- Defined in:
- lib/cucumber/wire_support/request_handler.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of RequestHandler.
4
5
6
7
|
# File 'lib/cucumber/wire_support/request_handler.rb', line 4
def initialize(connection)
@connection = connection
@message = underscore(self.class.name.split('::').last)
end
|
Instance Method Details
#execute(request_params = nil) ⇒ Object
9
10
11
|
# File 'lib/cucumber/wire_support/request_handler.rb', line 9
def execute(request_params = nil)
@connection.call_remote(self, @message, request_params)
end
|
#handle_fail(params) ⇒ Object
13
14
15
|
# File 'lib/cucumber/wire_support/request_handler.rb', line 13
def handle_fail(params)
raise @connection.exception(params)
end
|
#handle_success(params) ⇒ Object
17
18
|
# File 'lib/cucumber/wire_support/request_handler.rb', line 17
def handle_success(params)
end
|