class Account

Defined in:

models/account.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._balance #

def self._id #

def self._limit_amount #

def self.column_names : Array(String) #

Instance Method Detail

def balance : Int32 #

def balance! #

def balance=(_balance : Int32) #

def balance=(_balance : String) #

def balance=(_balance : AttrType) #

def balance_changed? : Bool #

def balance_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 : Union(Int32, Nil)) #

def id=(_id : String) #

def id=(_id : AttrType) #

def id_changed? : Bool #

def id_will_change! #

def limit_amount : Int32 #

def limit_amount! #

def limit_amount=(_limit_amount : Int32) #

def limit_amount=(_limit_amount : String) #

def limit_amount=(_limit_amount : AttrType) #

def limit_amount_changed? : Bool #

def limit_amount_will_change! #

def limit_reached? #

[View source]