Method: Weather#run

Defined in:
lib/edi/services/weather.rb

#runObject



9
10
11
12
13
# File 'lib/edi/services/weather.rb', line 9

def run
  self.response = EDI.get("http://api.openweathermap.org/data/2.5/weather?q=#{encoded_location}").response
  calculate_temperature
  self.response = "#{weather_description}. The temperature is currently #{temperature}"
end