Class: SolidusFriendlyPromotions::PromotionHandler::Null

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#errorObject

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

#orderObject (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

#successObject

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

#activateObject



16
17
# File 'app/models/solidus_friendly_promotions/promotion_handler/null.rb', line 16

def activate
end