Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created April 8, 2015 21:37
Show Gist options
  • Save anonymous/b6bde4261ba93da98b7b to your computer and use it in GitHub Desktop.
Save anonymous/b6bde4261ba93da98b7b to your computer and use it in GitHub Desktop.
['00001', '00002', '00003'].each do |zipcode|
data_hash = JSON.parse(HTTParty.get("http://example.com?zipcode=#{zipcode}").body)
# I've tried data_hash.clear and data_hash = nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment