Sha256: 8e6027a4dcedc334d4e83f6d0a45cda84942fdfb22287759439efddb22f91980
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
require 'pact/consumer/mock_service/web_request_administration' module Pact module Consumer class LogGet < WebRequestAdministration include RackRequestHelper def request_path '/log' end def request_method 'GET' end def respond env logger.info "Debug message from client - #{message(env)}" [200, {}, []] end def message env params_hash(env).fetch('msg', [])[0] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact-mock_service-0.2.3 | lib/pact/consumer/mock_service/log_get.rb |
pact-mock_service-0.2.3.pre.rc2 | lib/pact/consumer/mock_service/log_get.rb |