Sha256: 2d59868a4a44e807fc095afbe1536b2a5f508c2a4c0f26fe192adc2e325ad6d7

Contents?: true

Size: 313 Bytes

Versions: 149

Compression:

Stored size: 313 Bytes

Contents

dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'httparty')
require 'pp'

class Rep
  include HTTParty
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

149 entries across 123 versions & 7 rubygems

Version Path
httparty-0.16.0 examples/whoismyrep.rb
httparty-0.15.7 examples/whoismyrep.rb
httparty-0.15.6 examples/whoismyrep.rb
httparty-0.15.5 examples/whoismyrep.rb
httparty-0.15.4 examples/whoismyrep.rb
httparty-0.15.3 examples/whoismyrep.rb
httparty-0.15.2 examples/whoismyrep.rb
httparty-0.15.1 examples/whoismyrep.rb
httparty-0.15.0 examples/whoismyrep.rb