Sha256: 281ab8304fde6e452afd3f3cd9ec12b5adb7eee114f1ca826bfb8325809810de
Contents?: true
Size: 627 Bytes
Versions: 14
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module JabberAdmin module Commands # Unregister (delete) a user from the XMPP service. # # @see https://bit.ly/2wwYnDE class Unregister # Pass the correct data to the given callable. # # @param callable [Proc, #call] the callable to call # @param user [String] user JID wo/ resource (eg. +tom@localhost+) def self.call(callable, user:) uid, host = user.split('@') callable.call('unregister', check_res_body: false, user: uid, host: host) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems