struct Circed::Domain::LineBan

Included Modules

Defined in:

circed/domain/entities.cr

Constant Summary

GLINE = "GLINE"
KLINE = "KLINE"
TYPES = {KLINE, GLINE, ZLINE}
ZLINE = "ZLINE"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(type : String, mask : String, reason : String, set_by : String, set_at : Time = Time.utc, expires_at : Time | Nil = nil) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Class Method Detail

def self.key(type : String, mask : String) : String #

[View source]

Instance Method Detail

def expired?(now : Time = Time.utc) : Bool #

[View source]
def expires_at : Time | Nil #

[View source]
def key : String #

[View source]
def mask : String #

[View source]
def matches?(context : BanMatchContext) : Bool #

[View source]
def reason : String #

[View source]
def server_message : String #

[View source]
def set_at : Time #

[View source]
def set_by : String #

[View source]
def type : String #

[View source]