Sha256: b08ff1251bd71c9d1f90fdc5db3b5be6b8e13446869d6e501ed293b319a59999

Contents?: true

Size: 249 Bytes

Versions: 4

Compression:

Stored size: 249 Bytes

Contents

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

class Rep
  include HTTParty
  format :xml
end

puts Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544').inspect

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jnunemaker-httparty-0.1.1 examples/whoismyrep.rb
httparty-0.1.2 examples/whoismyrep.rb
httparty-0.1.1 examples/whoismyrep.rb
httparty-0.1.0 examples/whoismyrep.rb