class Travel_Plan

Defined in:

models/travel_plan.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._id #

def self._travel_stops #

def self.column_names : Array(String) #

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

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 travel_stops : Array(Int32) #

def travel_stops! #

def travel_stops=(_travel_stops : Array(Int32)) #

def travel_stops=(_travel_stops : String) #

def travel_stops=(_travel_stops : AttrType) #

def travel_stops_changed? : Bool #

def travel_stops_will_change! #