class User

Defined in:

models/user.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(values : Hash(Symbol, AttrType) | NamedTuple, new_record) #

Accepts symbol hash or named tuple, stringify it and calls constructor with string-based keys hash.


Class Method Detail

def self._email #

def self._id #

def self._name #

def self.column_names : Array(String) #

Instance Method Detail

def destroy : Bool #
Description copied from class Jennifer::Model::Base

Deletes object from db and calls all related callbacks.

It returns true if the object was successfully deleted.

Contact.first!.destroy # => true

def email : String #

def email! #

def email=(_email : String) #

def email=(_email : AttrType) #

def email_changed? : Bool #

def email_will_change! #

def id : Int64? #

def id! #

def id=(_id : Union(Int64, Nil)) #

def id=(_id : String) #

def id=(_id : Int32) #

def id=(_id : AttrType) #

def id_changed? : Bool #

def id_will_change! #

def name : String #

def name! #

def name=(_name : String) #

def name=(_name : AttrType) #

def name_changed? : Bool #

def name_will_change! #