Exception: Aloe::InsufficientBalanceError
- Inherits:
-
StandardError
- Object
- StandardError
- Aloe::InsufficientBalanceError
- Defined in:
- lib/aloe/insufficient_balance_error.rb
Instance Method Summary collapse
-
#initialize(account, expected_balance) ⇒ InsufficientBalanceError
constructor
A new instance of InsufficientBalanceError.
- #to_s ⇒ Object
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(account, expected_balance) @account, @expected_balance = account, expected_balance end |
Instance Method Details
#to_s ⇒ Object
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 |