class Items

Defined in:

models/items.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(it : CreateItemsDto, todo_id : Int32 | Nil) #

[View source]
def self.new(values : Hash(Symbol, AttrType) | NamedTuple) #

Accepts symbol hash or named tuple, stringify it and calls constructor with string-based keys hash.


Class Method Detail

def self._checked #

def self._created_at #

def self._id #

def self._name #

def self._todo_id #

def self._updated_at #

def self.column_names : Array(String) #

Instance Method Detail

def checked : Bool? #

def checked! #

def checked=(_checked : Union(Bool, Nil)) #

def checked=(_checked : String) #

def checked=(_checked : AttrType) #

def checked? #

def checked_changed? : Bool #

def checked_will_change! #

def created_at : Time? #

def created_at! #

def created_at=(_created_at : Union(Time, Nil)) #

def created_at=(_created_at : String) #

def created_at=(_created_at : AttrType) #

def created_at_changed? : Bool #

def created_at_will_change! #

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 : Int32? #

def id! #

def id=(_id : Int32 | Nil) #

def id=(_id : String) #

def id=(_id : AttrType) #

def id_changed? : Bool #

def id_will_change! #

def name : String #

def name! #

def name=(_name : String) #

def name=(_name : AttrType) #

def name_changed? : Bool #

def name_will_change! #

def todo #

[View source]
def todo_id : Int32? #

def todo_id! #

def todo_id=(_todo_id : Union(Int32, Nil)) #

def todo_id=(_todo_id : String) #

def todo_id=(_todo_id : AttrType) #

def todo_id_changed? : Bool #

def todo_id_will_change! #

def track_timestamps_on_create #

[View source]
def track_timestamps_on_update #

[View source]
def updated_at : Time? #

def updated_at! #

def updated_at=(_updated_at : Union(Time, Nil)) #

def updated_at=(_updated_at : String) #

def updated_at=(_updated_at : AttrType) #

def updated_at_changed? : Bool #

def updated_at_will_change! #