Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#getweather(somelocation) ⇒ Object

our actual weather API interface code. Simple, eh?



6
7
8
# File 'bin/rubycliweather', line 6

def getweather(somelocation)
  $doc = Nokogiri::XML(open("http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=#{somelocation}"))
end