class Travels

Defined in:

models/travels.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.


def self.new #

Default constructor without any fields


Class Method Detail

def self._id #

def self._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 stops : String #

def stops! #

def stops=(_stops : String) #

def stops=(_stops : AttrType) #

def stops_changed? : Bool #

def stops_will_change! #