lib/chatrix/api/rooms.rb
# Adds a user tag to a room.
#
# @param user [String] The user adding the tag.
# @param room [String] The room to add the tag to.
# @param tag [String] The tag to add.
# @param data [Hash] Any additional data to add to the tag, e.g. ordering.
# @return [Boolean] `true` if the tag was successfully added,
#   otherwise `false`.
Adds a user tag to a room.
Adds a user tag to a room .
def add_user_tag(user, room, tag, data = {})
        make_request(
          :put,
          "/user/#{user}/rooms/#{room}/tags/#{tag}",
          content: data
        ).code == 200
      end
def add_user_tag ( user , room , tag , data = { } ) make_request ( :put , "/user/#{user}/rooms/#{room}/tags/#{tag}" , content : data ) . code == 200 end
Adds a user tag to a room.
Adds a user tag to a room .
`true` if the tag was successfully added, otherwise `false`.
` true ` if the tag was successfully added otherwise ` false ` .
Boolean
user
The user adding the tag.
The user adding the tag .
room
The room to add the tag to.
The room to add the tag to .
tag
The tag to add.
The tag to add .
data
Any additional data to add to the tag, e.g. ordering.
Any additional data to add to the tag e . g . ordering .