Sha256: 9e11a32e75375f42044070cda19a8b77cc34d7c7f71fdcef654ef0a93f0e288b
Contents?: true
Size: 408 Bytes
Versions: 55
Compression:
Stored size: 408 Bytes
Contents
module Values # Participants rate their emotion with an intensity class EmotionalRating def self.from_rating(rating) return "Not answered" if rating.nil? if rating < 5 new("Bad") elsif rating == 5 new("Neither") else new("Good") 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