Sha256: d9248a8ff44ac82e296996e33263e609c815201295c6d0c94aafa18f6b268daa
Contents?: true
Size: 736 Bytes
Versions: 16
Compression:
Stored size: 736 Bytes
Contents
using AIXM::Refinements module AIXM module Concerns # Adds optional intensity of lights to features. module Intensity INTENSITIES = { LIL: :low, LIM: :medium, LIH: :high, OTHER: :other # specify in remarks }.freeze # Intensity of lights # # @overload remarks # @return [AIXM::Component::Timetable, nil] any of {INTENSITIES} # @overload remarks=(value) # @param value [AIXM::Component::Timetable, nil] any of {INTENSITIES} attr_reader :intensity def intensity=(value) @intensity = value.nil? ? nil : INTENSITIES.lookup(value.to_s.to_sym, nil) || fail(ArgumentError, "invalid intensity") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems