vendor/bundle/ruby/2.3.0/gems/freelancer-0.1.1/lib/freelancer/client.rb
# Convert a hash to a proper query string
Convert a hash to a proper query string
Convert a hash to a proper query string
def to_query(params)
      params.inject([]) do |collection, options|
        options[1] = URI.escape(options[1]) if options[1].is_a?(String) && !options[1].nil?
        collection << "#{options[0]}=#{options[1]}"
        collection
      end * "&"
    end
def to_query ( params ) params . inject ( [ ] ) do | collection , options | options [ 1 ] = URI . escape ( options [ 1 ] ) if options [ 1 ] . is_a? ( String ) && ! options [ 1 ] . nil? collection << "#{options[0]}=#{options[1]}" collection end * "&" end
Convert a hash to a proper query string
Convert a hash to a proper query string
params
<not_specific>