Class: CheckOrderSolvent
- Inherits:
-
Object
- Object
- CheckOrderSolvent
- Defined in:
- lib/moneymarket/commands/check_order_solvent.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
2 3 4 5 |
# File 'lib/moneymarket/commands/check_order_solvent.rb', line 2 def perform return true if order.market_order? source_available_amount >= order.required_amount end |