Sha256: 9154df8a458ed777e7af856635f398e85d25583f337185c90b51b97308cb042a
Contents?: true
Size: 451 Bytes
Versions: 55
Compression:
Stored size: 451 Bytes
Contents
module Values # A value that might be assigned to an Activity. class Accomplishment def self.from_intensity(intensity) return "Not answered" if intensity.nil? if intensity < 4 new("Low Importance") elsif intensity < 7 new("Average Importance") else new("High Importance") end end def initialize(label) @label = label end def to_s @label.to_s end end end
Version data entries
55 entries across 55 versions & 1 rubygems