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
18 19 20 |
# File 'app/models/plutus/amount.rb', line 18 def account_name=(name) self.account = Account.find_by_name!(name) end |