Class: JabberAdmin::Commands::DestroyRoom

Inherits:
Object
  • Object
show all
Defined in:
lib/jabber_admin/commands/destroy_room.rb

Overview

Destroys a given room (MUC).

Class Method Summary collapse

Class Method Details

.call(callable, room:, host:) ⇒ Object

Pass the correct data to the given callable.

Parameters:

  • callable (Proc, #call)

    the callable to call

  • room (String)

    room JID (eg. [email protected])

  • host (String)

    the jabber host (eg. localhost)



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