struct
Circed::Domain::LineBan
- Circed::Domain::LineBan
- Struct
- Value
- Object
Included Modules
- YAML::Serializable
Defined in:
circed/domain/entities.crConstant Summary
-
GLINE =
"GLINE" -
KLINE =
"KLINE" -
TYPES =
{KLINE, GLINE, ZLINE} -
ZLINE =
"ZLINE"
Constructors
- .new(type : String, mask : String, reason : String, set_by : String, set_at : Time = Time.utc, expires_at : Time | Nil = nil)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Class Method Summary
Instance Method Summary
- #expired?(now : Time = Time.utc) : Bool
- #expires_at : Time | Nil
- #key : String
- #mask : String
- #matches?(context : BanMatchContext) : Bool
- #reason : String
- #server_message : String
- #set_at : Time
- #set_by : String
- #type : String
Constructor Detail
def self.new(type : String, mask : String, reason : String, set_by : String, set_at : Time = Time.utc, expires_at : Time | Nil = nil)
#