Exception: Aloe::InsufficientBalanceError

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

Instance Method Summary collapse

Constructor Details

#initialize(account, expected_balance) ⇒ InsufficientBalanceError

Returns a new instance of InsufficientBalanceError.



4
5
6
# File 'lib/aloe/insufficient_balance_error.rb', line 4

def initialize(, expected_balance)
  @account, @expected_balance = , expected_balance
end

Instance Method Details

#to_sObject



8
9
10
11
# File 'lib/aloe/insufficient_balance_error.rb', line 8

def to_s
  "Account #{@account} has not enough balance" +
    " - required at least #{@expected_balance}!"
end