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