struct

Arcana::Auth::User

Inherits Struct < Value < Object

A user — currently used as a principal for API key ownership. Password auth is reserved for v2; for now password_hash is nil.

Constructors

create(email : String, name : String | Nil = nil) : User
Source
new(id : Int64, email : String, name : Nil | String, password_hash : Nil | String, created_at : Time)
Source

Class methods

find(id : Int64) : User | Nil
Source
find_by_email(email : String) : User | Nil
Source
list
Source

Instance methods

created_at
Source
created_at=(created_at : Time)
Source
email
Source
email=(email : String)
Source
id=(id : Int64)
Source
name
Source
name=(name : String | Nil)
Source
password_hash
Source
password_hash=(password_hash : String | Nil)
Source