Module: ChatManager::ChatManageable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/chat_manager/chat_manageable.rb
Instance Method Summary collapse
Instance Method Details
#add_chat(chat) ⇒ Object
15 16 17 18 |
# File 'lib/chat_manager/chat_manageable.rb', line 15 def add_chat(chat) return if chat.nil? || @chats.include?(chat) @chats << chat end |
#initialize_chat(chats) ⇒ Object
7 8 9 |
# File 'lib/chat_manager/chat_manageable.rb', line 7 def initialize_chat(chats) @chats = chats.to_a end |
#set_active_chat_uuid(uuid) ⇒ Object
11 12 13 |
# File 'lib/chat_manager/chat_manageable.rb', line 11 def set_active_chat_uuid(uuid) @active_chat_uuid = uuid end |