Skip to content

Instantly share code, notes, and snippets.

@robins35
Created March 11, 2014 17:10
Show Gist options
  • Save robins35/c6f73869366f5b050ecf to your computer and use it in GitHub Desktop.
Save robins35/c6f73869366f5b050ecf to your computer and use it in GitHub Desktop.
keywords = cgi.params['q']
10 moc = cgi.params['moc']
11 loc = cgi.params['location']
12 nearCity = cgi.params['includeNearbyCities']
13 datePosted = cgi.params['datePosted']
14 sortBy = cgi.params['sort']
15 order = cgi.params['order']
16 page = cgi.params['offset']
17 industry = cgi.params['jobposting-industry']
18 category = cgi.params['jobposting-occupationalcategory']
19
20 unless keywords.nil? or keywords.empty? then url.concat("&q=#{keywords}") end
21 unless moc.nil? or moc.empty? then url.concat("&moc=#{moc}") end
22 unless loc.nil? or loc.empty? then url.concat("&location=#{loc}") end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment