class BlueprintAgreement::Utils::RequestLogger
Public Instance Methods
for(body:, headers:, path:, request_method:)
click to toggle source
# File lib/blueprint_agreement/utils/request_logger.rb, line 8 def for(body:, headers:, path:, request_method:) @body = body @path = path @request_method = request_method @headers = headers end
print()
click to toggle source
# File lib/blueprint_agreement/utils/request_logger.rb, line 15 def print header_output = @headers.to_a.map { |header| header.join(": ") }.join("\n") %{ Method: #{@request_method} Path: #{@path} Headers: #{ header_output } Body: #{@body} } end