class
XMPP::Stanza::Mood
Overview
Mood defines data model for XEP-0107 - User Mood See: https://xmpp.org/extensions/xep-0107.html
Defined in:
xmpp/stanza/pep.crConstant Summary
-
VALID_MOODS =
{"afraid", "amazed", "angry", "amorous", "annoyed", "anxious", "aroused", "ashamed", "bored", "brave", "calm", "cautious", "cold", "confident", "confused", "contemplative", "contented", "cranky", "crazy", "creative", "curious", "dejected", "depressed", "disappointed", "disgusted", "dismayed", "distracted", "embarrassed", "envious", "excited", "flirtatious", "frustrated", "grateful", "grieving", "grumpy", "guilty", "happy", "hopeful", "hot", "humbled", "humiliated", "hungry", "hurt", "impressed", "in_awe", "in_love", "indignant", "interested", "intoxicated", "invincible", "jealous", "lonely", "lost", "lucky", "mean", "moody", "nervous", "neutral", "offended", "outraged", "playful", "proud", "relaxed", "relieved", "remorseful", "restless", "sad", "sarcastic", "satisfied", "serious", "shocked", "shy", "sick", "sleepy", "spontaneous", "stressed", "strong", "surprised", "thankful", "thirsty", "tired", "undefined", "weak", "worried"} -
Predefined mood types from XEP-0107
Constructors
Class Method Summary
Instance Method Summary
-
#mood_description : String
Get a human-readable description of the mood
- #name : String
- #text : String
- #text=(text : String)
- #to_xml(xml : XML::Builder)
-
#valid_mood? : Bool
Check if the mood value is a valid XEP-0107 mood type
- #value : String
- #value=(value : String)
Instance methods inherited from module XMPP::Stanza::Packet
name : String
name,
to_xml(xml : XML::Builder)to_xml : String to_xml