module ReturnHTML::ClassMethods
Public Instance Methods
return_html(zip)
click to toggle source
# File lib/concerns/return_html.rb, line 6 def return_html(zip) full_url = "#{self.url}#{zip}" begin open(full_url, &:read) rescue OpenURI::HTTPError puts "#{zip} is not found on weather.com. Consider removing it from your list.".colorize(:light_red) end end