class User

Included Modules

Defined in:

models/user.cr:3
models/user.cr:6

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.last_updated_at #

[View source]

Instance Method Detail

def authenticate(password : String) #

[View source]
def billability_goal : Float64 #

[View source]
def billability_goal=(billability_goal : Float64) #

[View source]
def created_at : Time #

[View source]
def created_at=(created_at : Time) #

[View source]
def email : String #

[View source]
def email=(email : String) #

[View source]
def first_name : String #

[View source]
def first_name=(first_name : String) #

[View source]
def hashed_password : String | Nil #

[View source]
def hashed_password! : String #

[View source]
def hashed_password=(hashed_password : String | Nil) #

[View source]
def id : Int64 | Nil #

[View source]
def id! : Int64 #

[View source]
def id=(id : Int64 | Nil) #

[View source]
def is_active : Bool #

[View source]
def is_active=(is_active : Bool) #

[View source]
def is_admin : Bool #

[View source]
def is_admin=(is_admin : Bool) #

[View source]
def is_contractor : Bool #

[View source]
def is_contractor=(is_contractor : Bool) #

[View source]
def last_name : String #

[View source]
def last_name=(last_name : String) #

[View source]
def password #

[View source]
def password=(password : Nil | String) #

[View source]
def password_changed? #

[View source]
def set_timestamps(*, to time = Time.local(Granite.settings.default_timezone), mode = :create) #

Override Granites created_at/updated_at handling.


[View source]
def updated_at : Time #

[View source]
def updated_at=(updated_at : Time) #

[View source]
def valid_password_size? #

[View source]
def working_hours : Float64 #

[View source]
def working_hours=(working_hours : Float64) #

[View source]