Class: OpenWeatherClient

Inherits:
Object
  • Object
show all
Defined in:
lib/open_weather_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(city) ⇒ OpenWeatherClient

Returns a new instance of OpenWeatherClient.



4
5
6
# File 'lib/open_weather_client.rb', line 4

def initialize(city)
  @city = city
end

Instance Method Details

#callObject



8
9
10
# File 'lib/open_weather_client.rb', line 8

def call
  Decorators::OpenWeatherResponse.new(weather_data)
end