Class: StellarBase::WithdrawalRequests::CallOnWithdraw
- Inherits:
-
Object
- Object
- StellarBase::WithdrawalRequests::CallOnWithdraw
- Extended by:
- LightService::Action
- Defined in:
- app/services/stellar_base/withdrawal_requests/call_on_withdraw.rb
Constant Summary collapse
- ON_WITHDRAW_ERROR =
"`on_withdraw` must be a string of an object " \ "that responds to `.call` or the object itself"
Class Method Summary collapse
Class Method Details
.callback_from(on_withdraw) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'app/services/stellar_base/withdrawal_requests/call_on_withdraw.rb', line 17 def self.callback_from(on_withdraw) on_withdraw = GetCallbackFrom.(on_withdraw) if !on_withdraw.respond_to?(:call) fail ArgumentError, ON_WITHDRAW_ERROR end on_withdraw end |