Sha256: db3a5d45de8338622b006b3a8aa68609028eeb56adbb07b82c9a83ad14fa77d2
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module Xsys module Model class ProductPriceList def self.attr_list [:product_code, :product_name, :price_list_code, :total_price, :markup, :price_updated_at] 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xsys-0.1.1 | lib/xsys/model/product_price_list.rb |
xsys-0.1.0 | lib/xsys/model/product_price_list.rb |