Class: WeatherCLI::FiveDay
- Inherits:
-
Object
- Object
- WeatherCLI::FiveDay
- Defined in:
- lib/weatherCLI.rb
Class Method Summary collapse
Class Method Details
.display(zip = '72703') ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/weatherCLI.rb', line 21 def self.display(zip='72703') html = GatherData::WeatherChannelFiveDay.return_html(zip) weather_hashes = ParseData::WeatherChannelFiveDay.new(html).return_hash WeatherCard::FiveLines.reset weather_hashes.each do |weather| day = Forecast::Day.new(weather) WeatherCard::FiveLines.new(day) end WeatherCard::FiveLines.display end |