Sha256: 9ca7d4e48a67059a211497c19a43420876197db85cfbdf7a0461bbfe21b27f54
Contents?: true
Size: 613 Bytes
Versions: 13
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true module JabberAdmin module Commands # Destroys a given room (MUC). # # @see https://bit.ly/31CtqxB class DestroyRoom # Pass the correct data to the given callable. # # @param callable [Proc, #call] the callable to call # @param room [String] room JID (eg. +room1@conference.localhost+) # @param host [String] the jabber host (eg. +localhost+) def self.call(callable, room:, host:) name, service = room.split('@') callable.call('destroy_room', name: name, service: service, host: host) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems