class Services::Application::WeatherByAddress::Result

WeatherByAddress Result

Thin wrapper returned by WeatherByAddress#call. Delegates weather fields to WeatherAtLocation and adds per-adapter source tracking (:api_response / :cached_response).

Example

result = Services::Application::WeatherByAddress.new.call("São Paulo")
result.location.latitude          # => -23.55
result.current_weather            # => CurrentWeather
result.from_cache?(:geocode)      # => false
result.sources[:current_weather]  # => :api_response