Class: JabberAdmin::Commands::Unregister
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::Unregister
- Defined in:
- lib/jabber_admin/commands/unregister.rb
Overview
Unregister (delete) a user from the XMPP service.
Class Method Summary collapse
-
.call(callable, user:) ⇒ Object
Pass the correct data to the given callable.
Class Method Details
.call(callable, user:) ⇒ Object
Pass the correct data to the given callable.
13 14 15 16 17 18 19 |
# File 'lib/jabber_admin/commands/unregister.rb', line 13 def self.call(callable, user:) uid, host = user.split('@') callable.call('unregister', check_res_body: false, user: uid, host: host) end |