Method: HttpStub::Configurator::EndpointTemplate#initialize

Defined in:
lib/http_stub/configurator/endpoint_template.rb

#initialize(server, default_stub_template, &block) ⇒ EndpointTemplate

Returns a new instance of EndpointTemplate.



8
9
10
11
# File 'lib/http_stub/configurator/endpoint_template.rb', line 8

def initialize(server, default_stub_template, &block)
  @server        = server
  @stub_template = HttpStub::Configurator::Stub::Template.new(default_stub_template, &block)
end