examples/whoismyrep.rb in alexvollmer-httparty-0.1.5 vs examples/whoismyrep.rb in alexvollmer-httparty-0.2.6
- old
+ new
@@ -4,6 +4,7 @@
class Rep
include HTTParty
end
-puts Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544').inspect
+pp Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544')
+pp Rep.get('http://whoismyrepresentative.com/whoismyrep.php', :query => {:zip => 46544})
\ No newline at end of file