Class: Pact::Consumer::LogGet
Constant Summary
RackRequestHelper::REQUEST_KEYS
Instance Attribute Summary
#logger, #name
Instance Method Summary
collapse
#params_hash, #request_as_hash_from
#initialize, #match?
Instance Method Details
#message(env) ⇒ Object
23
24
25
|
# File 'lib/pact/consumer/mock_service/log_get.rb', line 23
def message env
params_hash(env)['msg']
end
|
#request_method ⇒ Object
13
14
15
|
# File 'lib/pact/consumer/mock_service/log_get.rb', line 13
def request_method
'GET'
end
|
#request_path ⇒ Object
9
10
11
|
# File 'lib/pact/consumer/mock_service/log_get.rb', line 9
def request_path
'/log'
end
|
#respond(env) ⇒ Object
18
19
20
21
|
# File 'lib/pact/consumer/mock_service/log_get.rb', line 18
def respond env
logger.info "Debug message from client - #{message(env)}"
[200, {}, []]
end
|