lib/chatrix/api/rooms.rb
def create_alias(room, room_alias)
        make_request(
          :put,
          "/directory/room/#{room_alias}",
          content: { room_id: room }
        ).code == 200
      end
# Creates a new alias for a room.
#
# @param room [String] The room to create an alias for.
# @param room_alias [String] The alias to create for the room.
# @return [Boolean] `true` if the alias was created successfully,
#   otherwise `false`.
Creates a new alias for a room.
Creates a new alias for a room .
def create_alias(room, room_alias)
        make_request(
          :put,
          "/directory/room/#{room_alias}",
          content: { room_id: room }
        ).code == 200
      end
def create_alias ( room , room_alias ) make_request ( :put , "/directory/room/#{room_alias}" , content : { room_id : room } ) . code == 200 end
Creates a new alias for a room.
Creates a new alias for a room .
`true` if the alias was created successfully, otherwise `false`.
` true ` if the alias was created successfully otherwise ` false ` .
Boolean
room
The room to create an alias for.
The room to create an alias for .
room_alias
The alias to create for the room.
The alias to create for the room .