class User
- User
- Reference
- Object
Included Modules
- DB::Mappable
- DB::Serializable
Defined in:
management/user.crConstructors
- .new(rs : DB::ResultSet)
-
.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
Class Method Summary
Instance Method Summary
- #blacklist_reason : String | Nil
- #cooldown_until : Time | Nil
- #debug_enabled : Bool | Nil
- #hide_karma : Bool | Nil
- #id : Int64
- #joined : Time
- #karma : Int32
- #last_active : Time
- #left : Time | Nil
- #rank : Int32
- #realname : String
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #tripcode : String | Nil
- #username : String | Nil
- #warn_expiry : Time | Nil
- #warnings : Int32
Constructor Detail
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
Class Method Detail
Instance Method Detail
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
.