Sha256: cdbe87299cc50de8d6a1f1ea48fbef72e8e1d89ba9e66f9bb42b018ef51b48f5
Contents?: true
Size: 363 Bytes
Versions: 39
Compression:
Stored size: 363 Bytes
Contents
module Xsys module Model class StockReserveItem def self.attr_list [:product_id, :quantity] end attr_reader *attr_list def initialize(attributes={}) attributes.each do |k, v| self.send("#{k}=", v) if self.respond_to?(k) end end private attr_writer *attr_list end end end
Version data entries
39 entries across 39 versions & 1 rubygems