Module: ReturnHTML::ClassMethods
- Included in:
- GatherData::WeatherChannelFiveDay, GatherData::WeatherChannelHourly, GatherData::WeatherChannelToday
- Defined in:
- lib/concerns/return_html.rb
Instance Method Summary collapse
Instance Method Details
#return_html(zip) ⇒ Object
6 7 8 9 10 11 12 13 |
# 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 |