Class: WeatherCLI::SingleDay

Inherits:
Object
  • Object
show all
Defined in:
lib/weatherCLI.rb

Overview

Your code goes hereā€¦

Class Method Summary collapse

Class Method Details

.display(zip = '72703') ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/weatherCLI.rb', line 7

def self.display(zip='72703')
    # returns raw html from appropriate url
    html = GatherData::WeatherChannelToday.return_html(zip) 

    # returns applicable data to be used to create object
    weather_hash = ParseData::WeatherChannelToday.new(html).return_hash

    today = Forecast::Day.new(weather_hash)
    WeatherCard::SevenLines.new(today).display
end