Module: RocketChat::Messages::RoomSupport

Included in:
Chat, Room
Defined in:
lib/rocket_chat/messages/room_support.rb

Overview

Room params builder for calls with room parameters

Instance Method Summary collapse

Instance Method Details

#room_params(id, name) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/rocket_chat/messages/room_support.rb', line 9

def room_params(id, name)
  if id
    { roomId: id }
  elsif name
    { roomName: name }
  else
    {}
  end
end