class WeatherCLI::Hourly

Public Class Methods

display(zip='72703') click to toggle source
# File lib/weatherCLI.rb, line 34
def self.display(zip='72703')
    html = GatherData::WeatherChannelHourly.return_html(zip)
    weather_hashes = ParseData::WeatherChannelHourly.new(html).return_hash
    WeatherCard::Hourly.reset
    weather_hashes.each do |weather|
        day = Forecast::Day.new(weather)
        WeatherCard::Hourly.new(day)
    end
    WeatherCard::Hourly.display
end