Class: CartDiscountDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- CartDiscountDrop
- Defined in:
- app/drops/cart_discount_drop.rb
Overview
CartDiscountDrop represents a discount applied to a cart.
Instance Method Summary collapse
-
#amount ⇒ MoneyDrop
The amount of the discount.
-
#code ⇒ String
The coupon code.
-
#initialize(cart_item, product, code, amount) ⇒ CartDiscountDrop
constructor
A new instance of CartDiscountDrop.
-
#item ⇒ CartItemDrop
The CartItemDrop this discount applies to.
-
#product ⇒ CartItemDrop
The ProductDrop this discount applies to.
Methods inherited from Liquid::Simplero::Drop
Constructor Details
#initialize(cart_item, product, code, amount) ⇒ CartDiscountDrop
Returns a new instance of CartDiscountDrop.
Instance Method Details
#amount ⇒ MoneyDrop
The amount of the discount.
#code ⇒ String
The coupon code.
#item ⇒ CartItemDrop
The CartItemDrop this discount applies to. May be nil in the case of an order bump.
#product ⇒ CartItemDrop
The ProductDrop this discount applies to.