Sha256: 87933eacf2d01863017ddec1a6c7ec8e9b5e72633cba61ca45c9482c0dc0872a
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require 'date' module Barometer # # Night Measurement # a data class for forecasted night weather conditions # # This is basically a data holding class for the forecasted night # weather conditions. # class Measurement::ForecastNight < Measurement::Common attr_reader :date, :pop # accessors (with input checking) # def date=(date) raise ArgumentError unless date.is_a?(Date) @date = date end def pop=(pop) raise ArgumentError unless pop.is_a?(Fixnum) @pop = pop end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
attack-barometer-0.6.0 | lib/barometer/measurements/night.rb |
attack-barometer-0.6.1 | lib/barometer/measurements/night.rb |
barometer-0.6.1 | lib/barometer/measurements/night.rb |