Class: WireMockMapper::Configuration

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.request_builderObject (readonly)

Returns the value of attribute request_builder.



12
13
14
# File 'lib/configuration.rb', line 12

def request_builder
  @request_builder
end

.response_builderObject (readonly)

Returns the value of attribute response_builder.



12
13
14
# File 'lib/configuration.rb', line 12

def response_builder
  @response_builder
end

.wiremock_urlObject (readonly)

Returns the value of attribute wiremock_url.



12
13
14
# File 'lib/configuration.rb', line 12

def wiremock_url
  @wiremock_url
end

Class Method Details

.create_global_mapping {|@request_builder, @response_builder| ... } ⇒ Object

Add mappings to include for all future mappings



15
16
17
# File 'lib/configuration.rb', line 15

def create_global_mapping
  yield @request_builder, @response_builder
end

.set_wiremock_url(url) ⇒ Object

Set the WireMock url

Parameters:

  • url (String)

    the url of the WireMock server



21
22
23
# File 'lib/configuration.rb', line 21

def set_wiremock_url(url)
  @wiremock_url = url
end