Slide 83
Slide 83 text
class Location
def sweater_weather?
uri = URI(conditions_url_for_zip_code)
result = Net::HTTP.get(uri)
response = JSON.parse(result)
feels_like = response.dig(
“current_observation”, “feelslike_f”)
feels_like.to_f.between?(55, 65)
end
end
1
2
3
@KEVIN_J_M