Sha256: 402cb294fc1649dd07649ea40fffde8da30cee10055819a1de8b1b590ba3f882

Contents?: true

Size: 608 Bytes

Versions: 5

Compression:

Stored size: 608 Bytes

Contents

class GetURL

    def initialize(address)
    
    #Turn street address into string formatted for URL
    address_array = address[:street].scan(/\w+/)
    address_string = ""
    x = 0
    while x < address_array.length - 1
    address_string += address_array[x] + "%20"
    x += 1
    end
    address_string += address_array[address_array.length-1]
    
    #Add street string + zip to url
    site = "https://secure.everyaction.com/p/VRl-GNlm_0mCSWaMc4d6_w2?pc=#{address[:zip]}&add1=#{address_string}&results=True"
    
    #send formatted URL to Selenium
    SeleniumScraper.new(site, address)
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
my-congress-0.2.7 lib/get_url.rb
my-congress-0.2.6 lib/get_url.rb
my-congress-0.2.5 lib/get_url.rb
my-congress-0.2.4 lib/get_url.rb
my-congress-0.2.3 lib/get_url.rb