class TravelStop
- TravelStop
- Jennifer::Model::Base
- Jennifer::Model::Resource
- Reference
- Object
Defined in:
models/travel_plans.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.
- #id : Int64?
- #id!
- #id=(_id : Union(Int64, Nil))
- #id=(_id : String)
- #id=(_id : Int32)
- #id=(_id : AttrType)
- #id_changed? : Bool
- #id_will_change!
- #stop_id : Int64
- #stop_id!
- #stop_id=(_stop_id : Int64)
- #stop_id=(_stop_id : String)
- #stop_id=(_stop_id : Int32)
- #stop_id=(_stop_id : AttrType)
- #stop_id_changed? : Bool
- #stop_id_will_change!
- #travel_plan
- #travel_plan_id : Int64?
- #travel_plan_id!
- #travel_plan_id=(_travel_plan_id : Union(Int64, Nil))
- #travel_plan_id=(_travel_plan_id : String)
- #travel_plan_id=(_travel_plan_id : Int32)
- #travel_plan_id=(_travel_plan_id : AttrType)
- #travel_plan_id_changed? : Bool
- #travel_plan_id_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