lib/elections_output.rb in my-congress-0.2.0 vs lib/elections_output.rb in my-congress-0.2.1
- old
+ new
@@ -1,10 +1,6 @@
-# require 'require_all'
-# require_all 'lib'
-# require 'pry'
-
class UpcomingElections
def initialize(state)
page = Nokogiri::HTML(open("https://www.vote411.org/#{state.downcase}"))
Header.new
@@ -38,14 +34,14 @@
puts "Type 'exit' to leave My Congress.".colorize(:blue)
choice = gets.chomp
if choice != '1' && choice != '2' && choice.upcase != 'EXIT'
puts "Invalid input. Press 'Enter' to return to Main Menu."
nothing = gets.chomp
- MyCongress.new.call
+ MCongress.new.call
elsif choice == '1'
- MyCongress.new.call
+ MCongress.new.call
elsif choice == '2'
- MyCongress.send_to_congress
+ MCongress.send_to_congress
else
ProgramEnd.new
end
end
end
\ No newline at end of file