Sha256: 2fb4ce70b35bf46ad510ba83a1656e1a04b4eef5ff2b892b11ec44e7891e966a

Contents?: true

Size: 190 Bytes

Versions: 1

Compression:

Stored size: 190 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

1 entries across 1 versions & 1 rubygems

Version Path
yahoo_weather-1.2.0 lib/yahoo_weather/astronomy.rb