Class: Plutus::Amount Abstract
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Plutus::Amount
- Defined in:
- app/models/plutus/amount.rb
Overview
This class is abstract.
An amount must be a subclass as either a debit or a credit to be saved to the database.
The Amount class represents debit and credit amounts in the system.
Direct Known Subclasses
Instance Method Summary collapse
-
#account_name=(name) ⇒ Object
Assign an account by name.
Instance Method Details
#account_name=(name) ⇒ Object
Assign an account by name
16 17 18 |
# File 'app/models/plutus/amount.rb', line 16 def account_name=(name) self.account = Account.find_by_name!(name) end |