lib/hackers-client.rb
##
# Encodes URI:
#   data = Hash of parameters
#
# Returns encoded string
Encodes URI:
data = Hash of parameters

Returns encoded string
Encodes URI : data = Hash of parameters Returns encoded string
def encodeURI(data)
        params = Array.new
        data.each do |k, v|
          params.push(
            [
              k,
              URI.encode_www_form_component(v).gsub("+", "%20"),
            ].join("=")
          )
        end
        return params.join("&")
      end
def encodeURI ( data ) params = Array . new data . each do | k , v | params . push ( [ k , URI . encode_www_form_component ( v ) . gsub ( "+" , "%20" ) , ] . join ( "=" ) ) end return params . join ( "&" ) end
Encodes URI:
data = Hash of parameters
Encodes URI : data = Hash of parameters
data