Sha256: bcc2e27569d01176070d25f51ba3dad811cc7163e568aaeb556d1c3cd352a5d4

Contents?: true

Size: 315 Bytes

Versions: 18

Compression:

Stored size: 315 Bytes

Contents

module ActiveCart
  module Items
    class MemoryItem
      attr_accessor :id, :name, :price
      include ActiveCart::Item

      def ==(item)
        self.id == item.id
      end
      
      def initialize(id, name, price)
        @id = id
        @name = name
        @price = price
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
galvinhsiu-active_cart-0.0.20 lib/active_cart/items/memory_item.rb
galvinhsiu-active_cart-0.0.19 lib/active_cart/items/memory_item.rb
active_cart-0.0.18 lib/active_cart/items/memory_item.rb
active_cart-0.0.17 lib/active_cart/items/memory_item.rb
active_cart-0.0.16 lib/active_cart/items/memory_item.rb
active_cart-0.0.15 lib/active_cart/items/memory_item.rb
active_cart-0.0.14 lib/active_cart/items/memory_item.rb
active_cart-0.0.13 lib/active_cart/items/memory_item.rb
active_cart-0.0.12 lib/active_cart/items/memory_item.rb
active_cart-0.0.11 lib/active_cart/items/memory_item.rb
active_cart-0.0.10.1 lib/active_cart/items/memory_item.rb
active_cart-0.0.10 lib/active_cart/items/memory_item.rb
active_cart-0.0.9 lib/active_cart/items/memory_item.rb
active_cart-0.0.8 lib/active_cart/items/memory_item.rb
active_cart-0.0.7 lib/active_cart/items/memory_item.rb
active_cart-0.0.6 lib/active_cart/items/memory_item.rb
active_cart-0.0.5 lib/active_cart/items/memory_item.rb
active_cart-0.0.4 lib/active_cart/items/memory_item.rb