Sha256: bccdd8fedfc8659ce99f5b676b8722f3067a5ff6120d71ba01ba237bf9ea382f

Contents?: true

Size: 144 Bytes

Versions: 3

Compression:

Stored size: 144 Bytes

Contents

module ShoppingCart
  module TotalPrice
    extend ActiveSupport::Concern

    def total_price
      product.price * quantity
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loker-shopping-cart-0.1.3 app/models/concerns/shopping_cart/total_price.rb
loker-shopping-cart-0.1.2 app/models/concerns/shopping_cart/total_price.rb
loker-shopping-cart-0.1.1 app/models/concerns/shopping_cart/total_price.rb