Sha256: 1f7c7b99c65e7a21ae4fbf2d37e6e49557564d68bc3cf7a8af5e5b63bc0faea3

Contents?: true

Size: 582 Bytes

Versions: 5

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

module JabberAdmin
  module Commands
    ##
    # Ban an account: kick sessions and set random password
    # https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#ban-account-ban-an-account-kick-sessions-and-set-random-password
    class BanAccount
      # @param [user] The user
      # @param [host] Server name
      # @param [reason] Reason for banning user
      def self.call(user:, host:, reason:)
        JabberAdmin::ApiCall.perform(
          'ban_account', user: user, host: host, reason: reason
        )
      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/ban_account.rb
jabber_admin-0.1.3 lib/jabber_admin/commands/ban_account.rb
jabber_admin-0.1.2 lib/jabber_admin/commands/ban_account.rb
jabber_admin-0.1.1 lib/jabber_admin/commands/ban_account.rb
jabber_admin-0.1.0 lib/jabber_admin/commands/ban_account.rb