class Ban

Overview

The Ban class is a representation of a ban.

Defined in:

models/ban.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ip : String, why : String) #

Creates a new Ban instance with a ban reason.


[View source]
def self.new(ip : String) #

Creates a new Ban instance with no ban reason.


[View source]

Instance Method Detail

def createBan #

Write a ban to the database.

WARNING Incomplete method.


[View source]
def ip : String #

The IP property represents a banned user's IP.


[View source]
def ip=(ip : String) #

The IP property represents a banned user's IP.


[View source]
def removeBan #

Remove a ban from the database.

WARNING Incomplete method.


[View source]
def why : String | Nil #

The #why property represents a ban reason.


[View source]
def why=(why : String | Nil) #

The #why property represents a ban reason.


[View source]