Method: Refinery::CartItem#initialize

Defined in:
lib/refinery/cart_item.rb

#initialize(product) ⇒ CartItem

Returns a new instance of CartItem.



9
10
11
12
# File 'lib/refinery/cart_item.rb', line 9

def initialize(product)
  @product = product
  @quantity = 1
end