Sha256: 8b7e755b5c47e62a33ec6dd782556e767f0c859f9f6d104b9a3a874b8e852c5e
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
module ApplePay module RequestFilter class Debugger def filter_request(request) started = "======= [ApplePay] API REQUEST STARTED =======" log started, request.dump end def filter_response(request, response) finished = "======= [ApplePay] API REQUEST FINISHED =======" log '-' * 50, response.dump, finished end private def log(*outputs) outputs.each do |output| ApplePay.logger.info output end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apple_pay-0.0.2 | lib/apple_pay/request_filter/debugger.rb |
apple_pay-0.0.1 | lib/apple_pay/request_filter/debugger.rb |