class Services::Infrastructure::Adapters::Weather::GoogleCurrentWeather
Google Weather API — Current conditions
Fetches current weather from the Current Conditions endpoint. Responses are cached for 30 minutes per location.
Example
adapter = Services::Infrastructure::Adapters::Weather::GoogleCurrentWeather.new response = adapter.call(-23.5505, -46.6333, zipcode: "01310-100") response.data["temperature"]["degrees"] # => 25.3 response.data["weatherCondition"]["description"]["text"] # => "Partly cloudy" response.source # => :api_response