Class: WebMock::ResponseFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/webmock/response.rb

Class Method Summary collapse

Class Method Details

.response_for(options) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/webmock/response.rb', line 6

def self.response_for(options)
  if options.respond_to?(:call)
    WebMock::DynamicResponse.new(options)
  else
    WebMock::Response.new(options)
  end
end