class User
- User
- ApplicationModelBase
- Jennifer::Model::Base
- Jennifer::Model::Resource
- Reference
- Object
Defined in:
models/user.crConstructors
-
.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 Summary
Instance Method Summary
-
#destroy : Bool
Deletes object from db and calls all related callbacks.
- #email : String
- #email!
- #email=(_email : String)
- #email=(_email : AttrType)
- #email_changed? : Bool
- #email_will_change!
- #id : Int64?
- #id!
- #id=(_id : Union(Int64, Nil))
- #id=(_id : String)
- #id=(_id : Int32)
- #id=(_id : AttrType)
- #id_changed? : Bool
- #id_will_change!
- #name : String
- #name!
- #name=(_name : String)
- #name=(_name : AttrType)
- #name_changed? : Bool
- #name_will_change!
Constructor Detail
Accepts symbol hash or named tuple, stringify it and calls constructor with string-based keys hash.
Class Method Detail
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