mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
18 lines
354 B
Ruby
18 lines
354 B
Ruby
class EmotionService < Service
|
|
def self.color_for_emotion(emotion_symbol)
|
|
case emotion_symbol
|
|
when :joy
|
|
return 'yellow'
|
|
when :sadness
|
|
return 'blue'
|
|
when :fear
|
|
return 'grey'
|
|
when :disgust
|
|
return 'green'
|
|
when :anger
|
|
return 'red'
|
|
else
|
|
return 'white'
|
|
end
|
|
end
|
|
end |