White Wine

Light, white and an absolute delight! White wines are the elixir produced from the alcoholic fermentation of grape pulp, without the skin. The radiant yellow hues make this a drink that is just as beautiful as it tastes.

class DisableDiscountCodesCampaign def initialize(rejection_message) @rejection_message = rejection_message end def run(cart) return if cart.discount_code.nil? cart.discount_code.reject(message: @rejection_message) end end CAMPAIGNS = [ DisableDiscountCodesCampaign.new(REJECTION_MESSAGE), ] CAMPAIGNS.each do |campaign| campaign.run(Input.cart) end Output.cart = Input.cart