lib/find_representatives.rb in my-congress-0.2.2 vs lib/find_representatives.rb in my-congress-0.2.3

- old
+ new

@@ -1,8 +1,8 @@ class FindRepresentatives - def initialize(sen1, sen2, rep, elements, state) + def initialize(sen1, sen2, rep, elements, address) # Grab district number for Representative display @district = rep[2].scan(/\d/)[0] # create hashes for each senator and representative senator1 = {} @@ -26,12 +26,12 @@ member[:facebook] = elements.css("div.oa-eo-target-col-links")[x+3].children[3].attributes["href"].value member[:website] = elements.css("div.oa-eo-target-col-links")[x+3].children[5].attributes["href"].value x += 1 end - # Send organized hashes, district, and state to + # Send organized hashes, district, and address hash to # CongressOutput method for output - CongressOutput.new(senator1, senator2, representative, @district, state) + CongressOutput.new(senator1, senator2, representative, @district, address) end end \ No newline at end of file