Post
Inherits Jennifer::Model::Base < Jennifer::Model::Callback < Jennifer::Model::Validation < Jennifer::Validations::Macros < Jennifer::Model::STIMapping < Jennifer::Model::OptimisticLocking < Jennifer::Model::Timestamp < Jennifer::Model::Mapping < Jennifer::Model::CommonMapping < Jennifer::Model::FieldDeclaration < Jennifer::Presentable < Jennifer::Model::Resource < Jennifer::Macros < Jennifer::Model::RelationDefinition < Jennifer::Model::Scoping < Jennifer::Model::Translation < Reference < Object
Constructors
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 methods
_created_at
_id
_text
_title
_updated_at
column_names
Instance methods
created_at
created_at!
created_at=(_created_at : Union(Time, Nil))
created_at=(_created_at : String)
created_at=(_created_at : AttrType)
created_at_changed?
created_at_will_change!
destroy
Deletes object from db and calls all related callbacks.
It returns true if the object was successfully deleted.
Contact.first!.destroy # => true
id
id!
id=(_id : Union(Int64, Nil))
id=(_id : String)
id=(_id : Int32)
id=(_id : AttrType)
id_changed?
id_will_change!
text
text!
text=(_text : Union(String, Nil))
text=(_text : AttrType)
text_changed?
text_will_change!
title
title!
title=(_title : String)
title=(_title : AttrType)
title_changed?
title_will_change!
track_timestamps_on_create
Sourcetrack_timestamps_on_update
Sourceupdated_at
updated_at!
updated_at=(_updated_at : Union(Time, Nil))
updated_at=(_updated_at : String)
updated_at=(_updated_at : AttrType)
updated_at_changed?
updated_at_will_change!