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.
150 151 152 |
# File 'lib/webmock/response.rb', line 150 def initialize(responder) @responder = responder end |
Instance Attribute Details
#responder ⇒ Object
Returns the value of attribute responder.
148 149 150 |
# File 'lib/webmock/response.rb', line 148 def responder @responder end |