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