Class: WebMock::DynamicResponse
- Defined in:
- lib/webmock/response.rb
Instance Attribute Summary collapse
-
#responder ⇒ Object
Returns the value of attribute responder.
Instance Method Summary collapse
- #evaluate(request_signature) ⇒ Object
-
#initialize(responder) ⇒ DynamicResponse
constructor
A new instance of DynamicResponse.
Methods inherited from Response
#==, #body, #body=, #exception, #exception=, #headers, #headers=, #options=, #raise_error_if_any, #should_timeout, #status, #status=
Constructor Details
#initialize(responder) ⇒ DynamicResponse
Returns a new instance of DynamicResponse.
152 153 154 |
# File 'lib/webmock/response.rb', line 152 def initialize(responder) @responder = responder end |
Instance Attribute Details
#responder ⇒ Object
Returns the value of attribute responder.
150 151 152 |
# File 'lib/webmock/response.rb', line 150 def responder @responder end |