Class: ESA::Accounts::Asset
- Inherits:
-
ESA::Account
- Object
- ActiveRecord::Base
- ESA::Account
- ESA::Accounts::Asset
- Defined in:
- app/models/esa/accounts/asset.rb
Overview
The Asset class is an account type used to represents resources owned by the business entity.
Normal Balance
The normal balance on Asset accounts is a Debit.
Instance Method Summary collapse
-
#update_normal_balance ⇒ Object
The normal balance for the account.
Methods inherited from ESA::Account
#balance, namespaced_type, valid_type?
Instance Method Details
#update_normal_balance ⇒ Object
The normal balance for the account. Must be overridden in implementations.
13 14 15 16 17 18 19 |
# File 'app/models/esa/accounts/asset.rb', line 13 def update_normal_balance unless self.contra self.normal_balance = :debit else self.normal_balance = :credit end end |