Class: JabberAdmin::Commands::UnsubscribeRoom

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

Overview

Subscribe to a MUC conference, via the mucsub feature.

Class Method Summary collapse

Class Method Details

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

Pass the correct data to the given callable.

Parameters:

  • callable (Proc, #call)

    the callable to call

  • user (String)

    user JID w/ resource (eg. tom@localhost/dummy)

  • room (String)

    room JID (eg. [email protected])



14
15
16
# File 'lib/jabber_admin/commands/unsubscribe_room.rb', line 14

def self.call(callable, user:, room:)
  callable.call('unsubscribe_room', user: user, room: room)
end