Sha256: 1c49d11851456b977eb0d88b0f7bfe1ca861b9728165a054adcbe96fee77ee1d

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

module Dugway
  module Drops
    class CartItemDrop < BaseDrop 
      def price
        unit_price * quantity
      end

      def product
        ProductDrop.new(source['product'])
      end

      def option
        ProductOptionDrop.new(source['option'])
      end

      def shipping
        0.0
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dugway-0.5.3 lib/dugway/liquid/drops/cart_item_drop.rb
dugway-0.5.2 lib/dugway/liquid/drops/cart_item_drop.rb
dugway-0.5.1 lib/dugway/liquid/drops/cart_item_drop.rb
dugway-0.5.0 lib/dugway/liquid/drops/cart_item_drop.rb