Sha256: 14435e43981b62a8d111127d066835fe741cbabacb658f6e1d0c53bf2baf32b0

Contents?: true

Size: 434 Bytes

Versions: 45

Compression:

Stored size: 434 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/whoismyrep.php?zip=46544')
pp Rep.get('http://whoismyrepresentative.com/whoismyrep.php', :query => {:zip => 46544})

Version data entries

45 entries across 45 versions & 4 rubygems

Version Path
plyom_user-0.1.1 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.1.0 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.9 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.8 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.7 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.6 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.5 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.4 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.3 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
plyom_user-0.0.2 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb
httparty-0.11.0 examples/crack.rb
httparty-0.10.2 examples/crack.rb
httparty-0.10.1 examples/crack.rb
httparty-0.10.0 examples/crack.rb
dkastner-httparty-0.9.0 examples/crack.rb
httparty-0.9.0 examples/crack.rb
httparty-0.8.3 examples/crack.rb
httparty-0.8.2 examples/crack.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/httparty-0.8.1/examples/crack.rb
nutshell-crm-0.0.5 vendor/bundle/gems/httparty-0.8.1/examples/crack.rb