Class: JabberAdmin::Commands::SendDirectInvitation
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::SendDirectInvitation
- Defined in:
- lib/jabber_admin/commands/send_direct_invitation.rb
Overview
Send a direct invitation to several destinations.
Class Method Summary collapse
-
.call(callable, room:, users:, password: '', reason: '') ⇒ Object
Pass the correct data to the given callable.
Class Method Details
.call(callable, room:, users:, password: '', reason: '') ⇒ Object
Pass the correct data to the given callable.
17 18 19 20 21 22 23 24 25 |
# File 'lib/jabber_admin/commands/send_direct_invitation.rb', line 17 def self.call(callable, room:, users:, password: '', reason: '') name, service = room.split('@') callable.call('send_direct_invitation', name: name, service: service, password: password, reason: reason, users: users.join(':')) end |