Class: JabberAdmin::Commands::DestroyRoom
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::DestroyRoom
- Defined in:
- lib/jabber_admin/commands/destroy_room.rb
Overview
Destroys a given room (MUC).
Class Method Summary collapse
-
.call(callable, room:, host:) ⇒ Object
Pass the correct data to the given callable.
Class Method Details
.call(callable, room:, host:) ⇒ Object
Pass the correct data to the given callable.
14 15 16 17 |
# File 'lib/jabber_admin/commands/destroy_room.rb', line 14 def self.call(callable, room:, host:) name, service = room.split('@') callable.call('destroy_room', name: name, service: service, host: host) end |