Introducing the s44_myweatherforecast gem
require 'myweatherforecast' require 's44_myweatherforecast' api_key = '46xxxxxxxxxac6076ea01cbff4' mwf = MyWeatherForecast.new 'Edinburgh',api_key: api_key w = S44_MyWeatherForecast.new(mwf) w.this_afternoon
Output:
#=> "The weather this afternoon is to be light rain, drizzle, partly cloudy, but also clear with a minimum temperature of 5° celcius and a maximum temperature of 6° celcius."
Resources
- Introducing the MyWeatherForecast gem
- s44_myweatherforecast[rubygems.org]