lib/minfraud/assessments.rb
# Creates a unified request body from components converted to JSON
# @return [Hash] Request body
Creates a unified request body from components converted to JSON
Creates a unified request body from components converted to JSON
def request_body
      MAPPING.keys.inject({}) do |mem, e|
        next mem unless value = send(e)
        mem.merge!(e.to_s => value.to_json)
      end
    end
def request_body MAPPING . keys . inject ( { } ) do | mem , e | next mem unless value = send ( e ) mem . merge! ( e . to_s => value . to_json ) end end
Creates a unified request body from components converted to JSON
Creates a unified request body from components converted to JSON
None
Hash