Sha256: 928480142df345fe0a96d8db0abd54456a41d566416885581967e30621e845a6
Contents?: true
Size: 277 Bytes
Versions: 2
Compression:
Stored size: 277 Bytes
Contents
class Warehouse::Item < Struct.new(:code, :title, :qty, :price) attr_accessor :items def type 'single' end def random? false end def single? true end def persisted?; end def deep_dup Warehouse::Item.new(code, title, qty, price) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
warehouse_items-0.1.1 | lib/warehouse/item.rb |
warehouse_items-0.1.0 | lib/warehouse/item.rb |