Sha256: 771b6eb7c0de681e30ff93c3b73d91ee18d01bd2983d9b922e59cb53a56e3423

Contents?: true

Size: 189 Bytes

Versions: 10

Compression:

Stored size: 189 Bytes

Contents

class YahooWeather::Astronomy
  attr_reader :sunrise, :sunset

  def initialize(payload)
    @sunrise = Time.parse(payload['sunrise'])
    @sunset  = Time.parse(payload['sunset'])
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yahoo_weather-1.1.1 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.1.0 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.7 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.6 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.5 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.4 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.3 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.2 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.1 lib/yahoo_weather/astronomy.rb
yahoo_weather-1.0.0 lib/yahoo_weather/astronomy.rb