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
Baninstance with a ban reason. -
.new(ip : String)
Creates a new
Baninstance with no ban reason.
Instance Method Summary
-
#createBan
Write a ban to the database.
-
#ip : String
The
IPproperty represents a banned user's IP. -
#ip=(ip : String)
The
IPproperty represents a banned user's IP. -
#removeBan
Remove a ban from the database.
-
#why : String | Nil
The
#whyproperty represents a ban reason. -
#why=(why : String | Nil)
The
#whyproperty represents a ban reason.