Class: JabberAdmin::Commands::CreateRoom
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::CreateRoom
- Defined in:
- lib/jabber_admin/commands/create_room.rb
Overview
Create a new 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.
Note: this command should not be used in the bang-variant, due to raw result string in the response. (the response body is not zero/one like on almost all commands)
18 19 20 21 |
# File 'lib/jabber_admin/commands/create_room.rb', line 18 def self.call(callable, room:, host:) name, service = room.split('@') callable.call('create_room', name: name, service: service, host: host) end |