Exception: Aloe::InvalidCurrencyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aloe/invalid_currency_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(credit_account, debit_account, currency) ⇒ InvalidCurrencyError

Returns a new instance of InvalidCurrencyError.



4
5
6
7
8
# File 'lib/aloe/invalid_currency_error.rb', line 4

def initialize(, , currency)
   = 
   = 
  @currency = currency
end

Instance Method Details

#to_sObject



10
11
12
13
# File 'lib/aloe/invalid_currency_error.rb', line 10

def to_s
  "Different currencies on accounts #{@credit_account}, #{@debit_account}" +
    " - expected #{@currency}."
end