Sha256: 086cf2b32640e946c7740fb8de86e29daf1ad03b0ff1367091ba497ccffd2a0b
Contents?: true
Size: 535 Bytes
Versions: 5
Compression:
Stored size: 535 Bytes
Contents
module Xsys module Model class StockControl attr_accessor :shop_code, :transaction_id, :receipt_number, :transaction_date, :product_category_id, :product_category_name, :user_id, :user_name, :errors_count def initialize(attributes={}) attributes.each do |k,v| if k.to_s == 'transaction_date' self.transaction_date = Date.parse(v) unless v.nil? else self.send("#{k}=", v) if self.respond_to?(k) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems