lib/breathe_in/cli.rb in breathe_in-0.3.0 vs lib/breathe_in/cli.rb in breathe_in-0.4.0

- old
+ new

@@ -26,9 +26,23 @@ assign_attributes(new_city) display_information end end + # def get_information + # get_zipcode + # @city = BreatheIn::City.find_by_zipcode({zipcode: self.class.zipcode}) + # scrape_data BreatheIn::City.new({zipcode: self.class.zipcode}) + # if BreatheIn::Scraper.city_name == nil + # puts "That zipcode is not recognized by AirNow.gov." + # get_information + # else + # new_city = BreatheIn::City.new({zipcode: self.class.zipcode}) + # assign_attributes(new_city) + # display_information + # end + # end + def check_site_availability if BreatheIn::Scraper.under_maintenance disclaimer = <<-Ruby ***AirNow.gov undergoes maintenance from midnight to 4am EST. If information is currently unavailable, please try again later.*** \ No newline at end of file