Sha256: c948900c7ccaf96aa29b9a19beb719646f1b606b7c6a4814180d326c254b7e64

Contents?: true

Size: 548 Bytes

Versions: 32

Compression:

Stored size: 548 Bytes

Contents

require 'pact/mock_service/request_handlers/base_administration_request_handler'

module Pact
  module MockService
    module RequestHandlers
      class LogGet < BaseAdministrationRequestHandler

        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
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
pact-mock_service-0.7.0 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.6.0 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.5.5 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.5.4 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.5.3 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.5.2 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.5.1 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.5.0 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.4.2 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.4.1 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.4.0 lib/pact/mock_service/request_handlers/log_get.rb
pact-mock_service-0.3.0 lib/pact/mock_service/request_handlers/log_get.rb