class Services::Domains::Weather::CurrentWeather
Value object: snapshot of current weather conditions at a point in time. +time_zone_id+ is coerced to a frozen string.
Attributes
Public Class Methods
Source
# File app/services/domains/weather/current_weather.rb 12 def initialize( 13 current_time:, 14 time_zone_id:, 15 is_daytime:, 16 weather_condition:, 17 temperature_degrees:, 18 feels_like_degrees: nil 19 ) 20 @current_time = current_time 21 @time_zone_id = time_zone_id.to_s.freeze 22 @is_daytime = is_daytime 23 @weather_condition = weather_condition 24 @temperature_degrees = temperature_degrees 25 @feels_like_degrees = feels_like_degrees 26 freeze 27 end