class SFRest::Pathbuilder

make a url querypath so that if the are multiple items in a get request we can get a path like /api/v1/foo?bar=boo&bat=gah …

Public Instance Methods

build_url_query(current_path, datum = nil) click to toggle source

build a get query @param [String] current_path the uri like /api/v1/foo @param [Hash] datum k,v hash of get query param and value

# File lib/sfrest/pathbuilder.rb, line 11
def build_url_query(current_path, datum = nil)
  unless datum.nil?
    current_path += '?'
    current_path += URI.encode_www_form datum
  end
  current_path
end