class Ban
- Ban
- Reference
- Object
Overview
The Ban
class is a representation of a ban.
Defined in:
models/ban.crConstructors
-
.new(ip : String, why : String)
Creates a new
Ban
instance with a ban reason. -
.new(ip : String)
Creates a new
Ban
instance with no ban reason.
Instance Method Summary
-
#createBan
Write a ban to the database.
-
#ip : String
The
IP
property represents a banned user's IP. -
#ip=(ip : String)
The
IP
property represents a banned user's IP. -
#removeBan
Remove a ban from the database.
-
#why : String | Nil
The
#why
property represents a ban reason. -
#why=(why : String | Nil)
The
#why
property represents a ban reason.