Class: JabberAdmin::Commands::SetRoomAffiliation
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::SetRoomAffiliation
- Defined in:
- lib/jabber_admin/commands/set_room_affiliation.rb
Overview
Change a user affiliation in a MUC room. (eg. allow him to enter a members-only room)
Class Method Summary collapse
-
.call(callable, user:, room:, affiliation: 'member') ⇒ Object
Pass the correct data to the given callable.
Class Method Details
.call(callable, user:, room:, affiliation: 'member') ⇒ Object
Pass the correct data to the given callable.
16 17 18 19 20 21 22 23 |
# File 'lib/jabber_admin/commands/set_room_affiliation.rb', line 16 def self.call(callable, user:, room:, affiliation: 'member') name, service = room.split('@') callable.call('set_room_affiliation', name: name, service: service, jid: user, affiliation: affiliation) end |