app/utils/url_utils.rb
def build_url(base_url, params)
    uri = URI(base_url)
    uri.query = URI.encode_www_form(HashUtils.compact(params))
    uri.to_s
  end
# Takes a base_url with no query parameters but with scheme included
# and a params hash. Returns a full uri str with query
# params. Params with nil values are dropped.
Takes a base_url with no query parameters but with scheme included
and a params hash. Returns a full uri str with query
params. Params with nil values are dropped.
Takes a base_url with no query parameters but with scheme included and a params hash . Returns a full uri str with query params . Params with nil values are dropped .
def build_url(base_url, params)
    uri = URI(base_url)
    uri.query = URI.encode_www_form(HashUtils.compact(params))
    uri.to_s
  end
def build_url ( base_url , params ) uri = URI ( base_url ) uri . query = URI . encode_www_form ( HashUtils . compact ( params ) ) uri . to_s end
Takes a base_url with no query parameters but with scheme included
and a params hash.
Takes a base_url with no query parameters but with scheme included and a params hash .
base_url
params