class ESA::Amount

The Amount class represents debit and credit amounts in the system.

@abstract

An amount must be a subclass as either a debit or a credit to be saved to the database.

@author Lenno Nagel, Michael Bulat

Public Instance Methods

is_credit?() click to toggle source
# File app/models/esa/amount.rb, line 19
def is_credit?
  self.is_a? Amounts::Credit
end
is_debit?() click to toggle source
# File app/models/esa/amount.rb, line 23
def is_debit?
  self.is_a? Amounts::Debit
end