Class: OpenWeatherClient
- Inherits:
-
Object
- Object
- OpenWeatherClient
- Defined in:
- lib/open_weather_client.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(city) ⇒ OpenWeatherClient
constructor
A new instance of OpenWeatherClient.
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
#call ⇒ Object
8 9 10 |
# File 'lib/open_weather_client.rb', line 8 def call Decorators::OpenWeatherResponse.new(weather_data) end |