Methods

Class/Module Index [+]

Quicksearch

WebMock::DynamicResponse

Attributes

responder[RW]

Public Class Methods

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

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.