Method: WeatherReport::Weather#initialize

Defined in:
lib/weather-report/weather.rb

#initialize(city_id) ⇒ Weather

Returns a new instance of Weather.



7
8
9
# File 'lib/weather-report/weather.rb', line 7

def initialize(city_id)
  @uri = URI.parse("https://weather.tsukumijima.net/api/forecast?city=#{city_id}")
end