lib/nk_alpe/request.rb
# Based on the Content Type of the request, encode body
#
# @returns [Object]
Based on the Content Type of the request, encode body
Based on the Content Type of the request encode body
def encode_body(body, content_type)
      case content_type
      when 'application/x-www-form-urlencoded'
        URI.encode_www_form(body)
      else
        body.to_json
      end
    end
def encode_body ( body , content_type ) case content_type when 'application/x-www-form-urlencoded' URI . encode_www_form ( body ) else body . to_json end end
Based on the Content Type of the request, encode body
Based on the Content Type of the request encode body
None
body
content_type