Module: SimpleMarketplace::Offerable
- Included in:
- SimpleMarketplace::Offer::ProductDiscountByAmount, SimpleMarketplace::Offer::TotalPercentageDiscountByMinValue
- Defined in:
- lib/simple_marketplace/offerable.rb
Instance Method Summary collapse
-
#call(items, total) ⇒ Object
Every new offer/promotion will have to implement this method in order to execute its promotional rules.
Instance Method Details
#call(items, total) ⇒ Object
Every new offer/promotion will have to implement this method in order to execute its promotional rules.
5 6 7 |
# File 'lib/simple_marketplace/offerable.rb', line 5 def call(items, total) raise "Must implement" end |