Sha256: 6224757ca5b15645059b4e79a856f61ff3a1b160edb518a2655532343bce9775
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
module Weather class Astronomy # a Time object containing the sunrise time for a location attr_reader :sunrise # a Time object containing the sunset time for a location attr_reader :sunset def initialize payload @sunrise = Utils.parse_time payload[:sunrise] @sunset = Utils.parse_time payload[:sunset] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.1.1 | lib/weather-api/astronomy.rb |
weather-api-1.1.0 | lib/weather-api/astronomy.rb |