public
Rubygem
Description: Makes http fun! Also, makes consuming restful web services dead easy.
Clone URL: git://github.com/jnunemaker/httparty.git
Search Repo:
Click here to lend your support to: httparty and make a donation at www.pledgie.com !
httparty / examples / whoismyrep.rb
100644 9 lines (7 sloc) 0.235 kb
1
2
3
4
5
6
7
8
9
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'httparty')
require 'pp'
 
class Rep
  include HTTParty
end
 
puts Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544').inspect