Class: SolidusFriendlyPromotions::PromotionHandler::Null
- Inherits:
-
Object
- Object
- SolidusFriendlyPromotions::PromotionHandler::Null
- Defined in:
- app/models/solidus_friendly_promotions/promotion_handler/null.rb
Overview
We handle shipping promotions just like other promotions, so we don’t need a special promotion handler for shipping. However, Solidus wants us to implement one. This is what this class is for.
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
- #activate ⇒ Object
-
#initialize(order) ⇒ Null
constructor
A new instance of Null.
Constructor Details
#initialize(order) ⇒ Null
Returns a new instance of Null.
12 13 14 |
# File 'app/models/solidus_friendly_promotions/promotion_handler/null.rb', line 12 def initialize(order) @order = order end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
10 11 12 |
# File 'app/models/solidus_friendly_promotions/promotion_handler/null.rb', line 10 def error @error end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
9 10 11 |
# File 'app/models/solidus_friendly_promotions/promotion_handler/null.rb', line 9 def order @order end |
#success ⇒ Object
Returns the value of attribute success.
10 11 12 |
# File 'app/models/solidus_friendly_promotions/promotion_handler/null.rb', line 10 def success @success end |
Instance Method Details
#activate ⇒ Object
16 17 |
# File 'app/models/solidus_friendly_promotions/promotion_handler/null.rb', line 16 def activate end |