class TravelStop

Defined in:

models/travel_plans.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._stop_id #

def self._travel_plan_id #

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 stop_id : Int64 #

def stop_id! #

def stop_id=(_stop_id : Int64) #

def stop_id=(_stop_id : String) #

def stop_id=(_stop_id : Int32) #

def stop_id=(_stop_id : AttrType) #

def stop_id_changed? : Bool #

def stop_id_will_change! #

def travel_plan #

[View source]
def travel_plan_id : Int64? #

def travel_plan_id! #

def travel_plan_id=(_travel_plan_id : Union(Int64, Nil)) #

def travel_plan_id=(_travel_plan_id : String) #

def travel_plan_id=(_travel_plan_id : Int32) #

def travel_plan_id=(_travel_plan_id : AttrType) #

def travel_plan_id_changed? : Bool #

def travel_plan_id_will_change! #