Sha256: bb576d512a0746da6367c44c8d7c20035a2fcc622c549bcc651f0c5b9c704083
Contents?: true
Size: 379 Bytes
Versions: 12
Compression:
Stored size: 379 Bytes
Contents
module Xsys module Model class CashRegister def self.attr_list [:code, :register_number, :shop_code, :name] 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
12 entries across 12 versions & 1 rubygems