Class: Plutus::Amount Abstract

Inherits:
ActiveRecord::Base
  • Object
show all
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.

Author:

  • Michael Bulat

Direct Known Subclasses

CreditAmount, DebitAmount

Instance Method Summary collapse

Instance Method Details

#account_name=(name) ⇒ Object

Assign an account by name


16
17
18
# File 'app/models/plutus/amount.rb', line 16

def (name)
  self. = Account.find_by_name!(name)
end