class

Travel_Plan

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

_id
_travel_stops
column_names

Instance methods

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!
travel_stops
travel_stops!
travel_stops=(_travel_stops : Array(Int32))
travel_stops=(_travel_stops : String)
travel_stops=(_travel_stops : AttrType)
travel_stops_changed?
travel_stops_will_change!

Nested types