lib/weather-api/astronomy.rb in weather-api-1.1.1 vs lib/weather-api/astronomy.rb in weather-api-1.2.0

- old
+ new

@@ -4,10 +4,10 @@ attr_reader :sunrise # a Time object containing the sunset time for a location attr_reader :sunset - def initialize payload + def initialize(payload) @sunrise = Utils.parse_time payload[:sunrise] @sunset = Utils.parse_time payload[:sunset] end end end