Class: ShoppingCart::AddCheckoutDelivery

Inherits:
Rectify::Command
  • Object
show all
Defined in:
app/commands/shopping_cart/add_checkout_delivery.rb

Instance Method Summary collapse

Constructor Details

#initialize(order, params) ⇒ AddCheckoutDelivery

Returns a new instance of AddCheckoutDelivery.



3
4
5
6
# File 'app/commands/shopping_cart/add_checkout_delivery.rb', line 3

def initialize(order, params)
  @order = order
  @params = params
end

Instance Method Details

#callObject



8
9
10
# File 'app/commands/shopping_cart/add_checkout_delivery.rb', line 8

def call
  update_delivery
end