Method: WeatherCli::Weather#initialize

Defined in:
lib/weathercli/weather.rb

#initialize(location, *options) ⇒ Weather

Returns a new instance of Weather.



8
9
10
11
# File 'lib/weathercli/weather.rb', line 8

def initialize(location, *options)
  @location = location
  @options = Hash[options.map { |o| [o, true] }]
end