Sha256: ddd774caa57f12964ec831beeb85fa5fca6be1f8ae1d38e2848639fc5f75b5c5

Contents?: true

Size: 805 Bytes

Versions: 5

Compression:

Stored size: 805 Bytes

Contents

# frozen_string_literal: true

module JabberAdmin
  module Commands
    ##
    # Create a MUC room name@service in host
    # https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#create-room-with-opts-create-a-muc-room-name-service-in-host-with-given-options
    class CreateRoomWithOpts
      # @param [name] The room name
      # @param [service] MUC service
      # @param [host] Server host
      # @param [options] [{ Name::String, Value::String }] List of options
      def self.call(name:, service:, host:, options:)
        JabberAdmin::ApiCall.perform(
          'create_room_with_opts', name: name,
                                   service: service,
                                   host: host,
                                   options: options
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jabber_admin-0.1.4 lib/jabber_admin/commands/create_room_with_opts.rb
jabber_admin-0.1.3 lib/jabber_admin/commands/create_room_with_opts.rb
jabber_admin-0.1.2 lib/jabber_admin/commands/create_room_with_opts.rb
jabber_admin-0.1.1 lib/jabber_admin/commands/create_room_with_opts.rb
jabber_admin-0.1.0 lib/jabber_admin/commands/create_room_with_opts.rb