class Contact

Included Modules

Defined in:

models/contact.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.find_by_id!(id) : Contact #

Returns a Contact by ID


[View source]
def self.new(__temp_129 : DB::ResultSet) #

[View source]

Class Method Detail

def self.all(offset : Int32 = 0, limit : Int32 = 10) : Array(Contact) #

Returns all Contacts


[View source]
def self.count : Int64 #

[View source]
def self.find_by_email?(email : String) : Contact | Nil #

Returns a Contact by email


[View source]
def self.find_by_id?(id) : Contact | Nil #

Returns a Contact by ID or nil


[View source]
def self.from_rs(__temp_129 : DB::ResultSet) #

[View source]
def self.search(term : String, offset : Int32 = 0, limit : Int32 = 10) : Array(Contact) #

Returns Top 10 Contacts based on search term


[View source]

Instance Method Detail

def created_at : Time #

[View source]
def created_at=(_created_at : Time) #

[View source]
def email : String #

[View source]
def email=(_email : String) #

[View source]
def first : String? #

[View source]
def first=(_first : Union(String, Nil) | Nil) #

[View source]
def id : Int64 #

[View source]
def id=(_id : Int64) #

[View source]
def last : String? #

[View source]
def last=(_last : Union(String, Nil) | Nil) #

[View source]
def phone : String? #

[View source]
def phone=(_phone : Union(String, Nil) | Nil) #

[View source]
def updated_at : Time #

[View source]
def updated_at=(_updated_at : Time) #

[View source]