Sha256: b47f8ccb9e3070eebe8926795fc2497afa9ef50e2b5fe1d9fdabcc50043ce35e

Contents?: true

Size: 604 Bytes

Versions: 14

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module JabberAdmin
  module Commands
    # Subscribe to a MUC conference, via the mucsub feature.
    #
    # @see https://bit.ly/2G5zcrj
    class UnsubscribeRoom
      # Pass the correct data to the given callable.
      #
      # @param callable [Proc, #call] the callable to call
      # @param user [String] user JID w/ resource (eg. +tom@localhost/dummy+)
      # @param room [String] room JID (eg. +room1@conference.localhost+)
      def self.call(callable, user:, room:)
        callable.call('unsubscribe_room', user: user, room: room)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jabber_admin-1.3.4 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.3.3 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.3.2 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.3.1 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.3.0 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.2.0 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.1.0 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.0.5 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.0.4 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.0.3 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.0.2 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.0.1 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-1.0.0 lib/jabber_admin/commands/unsubscribe_room.rb
jabber_admin-0.2.0 lib/jabber_admin/commands/unsubscribe_room.rb