class WebMock::DynamicResponse

Attributes

responder[RW]

Public Class Methods

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

Public Instance Methods

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