class WebMock::DynamicResponse

Attributes

responder[RW]

Public Class Methods

new(responder) click to toggle source
# File lib/webmock/response.rb, line 152
def initialize(responder)
  @responder = responder
end

Public Instance Methods

evaluate(request_signature) click to toggle source
# File lib/webmock/response.rb, line 156
def evaluate(request_signature)
  options = @responder.call(request_signature)
  Response.new(options)
end