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._created_at #

def self._first_name #

def self._id #

def self._language_code #

def self._last_name #

def self._telegram_id #

def self._updated_at #

def self._username #

def self.column_names : Array(String) #

Instance Method Detail

def created_at : Time? #

def created_at! #

def created_at=(_created_at : Union(Time, Nil)) #

def created_at=(_created_at : String) #

def created_at=(_created_at : AttrType) #

def created_at_changed? : Bool #

def created_at_will_change! #

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 first_name : String #

def first_name! #

def first_name=(_first_name : String) #

def first_name=(_first_name : AttrType) #

def first_name_changed? : Bool #

def first_name_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 language_code : String? #

def language_code! #

def language_code=(_language_code : Union(String, Nil)) #

def language_code=(_language_code : AttrType) #

def language_code_changed? : Bool #

def language_code_will_change! #

def last_name : String? #

def last_name! #

def last_name=(_last_name : Union(String, Nil)) #

def last_name=(_last_name : AttrType) #

def last_name_changed? : Bool #

def last_name_will_change! #

def telegram_id : Int64 #

def telegram_id! #

def telegram_id=(_telegram_id : Int64) #

def telegram_id=(_telegram_id : String) #

def telegram_id=(_telegram_id : Int32) #

def telegram_id=(_telegram_id : AttrType) #

def telegram_id_changed? : Bool #

def telegram_id_will_change! #

def track_timestamps_on_create #

[View source]
def track_timestamps_on_update #

[View source]
def updated_at : Time? #

def updated_at! #

def updated_at=(_updated_at : Union(Time, Nil)) #

def updated_at=(_updated_at : String) #

def updated_at=(_updated_at : AttrType) #

def updated_at_changed? : Bool #

def updated_at_will_change! #

def username : String? #

def username! #

def username=(_username : Union(String, Nil)) #

def username=(_username : AttrType) #

def username_changed? : Bool #

def username_will_change! #