mockserver-client-ruby/lib/mockserver/model/expectation.rb
# Method to setup the response on the expectation object
# @yieldparam [Response] the response that this expectation references
# @return [Expectation] this object according to the  the builder pattern
Method to setup the response on the expectation object
Method to setup the response on the expectation object
def response(&_)
        if block_given?
          @response ||= Response.new
          yield @response
        end
        @response
      end
def response ( & _ ) if block_given? @response ||= Response . new yield @response end @response end
Method to setup the response on the expectation object
Method to setup the response on the expectation object
this object according to the the builder pattern
this object according to the the builder pattern
Expectation
_
<not_specific>
<not_specific>
the response that this expectation references
the response that this expectation references