class Artifactory::Resource::Base
def to_query_string_parameters(hash = {})
- See: http://bit.ly/1qeVYQl -
def to_query_string_parameters(hash = {}) properties = hash.map do |k, v| key = self.class.uri_parser.escape(k.to_s) value = self.class.uri_parser.escape(v.to_s) "#{key}=#{value}" end if properties.empty? nil else properties.join("&") end end