class User

Included Modules

Defined in:

management/user.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(rs : DB::ResultSet) #

[View source]
def self.new(id : Int64, username : Nil | String = nil, realname : String = "", rank : Int32 = 0, joined : Time = Time.utc, left : Time | Nil = nil, last_active : Time = Time.utc, cooldown_until : Time | Nil = nil, blacklist_reason : Nil | String = nil, warnings : Int32 = 0, warn_expiry : Time | Nil = nil, karma : Int32 = 0, hide_karma : Bool | Nil = false, debug_enabled : Bool | Nil = false, tripcode : Nil | String = nil) #

Create an instance of User


[View source]

Class Method Detail

def self.from_rs(rs : DB::ResultSet) #

[View source]

Instance Method Detail

def blacklist_reason : String | Nil #

[View source]
def cooldown_until : Time | Nil #

[View source]
def debug_enabled : Bool | Nil #

[View source]
def hide_karma : Bool | Nil #

[View source]
def id : Int64 #

[View source]
def joined : Time #

[View source]
def karma : Int32 #

[View source]
def last_active : Time #

[View source]
def left : Time | Nil #

[View source]
def rank : Int32 #

[View source]
def realname : String #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def tripcode : String | Nil #

[View source]
def username : String | Nil #

[View source]
def warn_expiry : Time | Nil #

[View source]
def warnings : Int32 #

[View source]