Sha256: b4bb76d567d4e8a729337785a97e2b5da4d0233c2168616b7db393a70c089c03
Contents?: true
Size: 436 Bytes
Versions: 16
Compression:
Stored size: 436 Bytes
Contents
require 'rubygems' require 'crack' dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'httparty') require 'pp' class Rep include HTTParty parser( Proc.new do |body, format| Crack::XML.parse(body) end ) end pp Rep.get('http://whoismyrepresentative.com/getall_mems.php?zip=46544') pp Rep.get('http://whoismyrepresentative.com/getall_mems.php', :query => {:zip => 46544})
Version data entries
16 entries across 15 versions & 5 rubygems