Sha256: 9d664ff2deea11d2ec6bc49e5b43ce722665105fa29c57f957069f0f0e10f01c

Contents?: true

Size: 380 Bytes

Versions: 12

Compression:

Stored size: 380 Bytes

Contents

module Xsys
  module Model
    class SalePoint
      def self.attr_list
        [:code, :shop_code, :point_number, :description]
      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

Version Path
xsys-0.47.0 lib/xsys/model/sale_point.rb
xsys-0.46.0 lib/xsys/model/sale_point.rb
xsys-0.45.0 lib/xsys/model/sale_point.rb
xsys-0.44.0 lib/xsys/model/sale_point.rb
xsys-0.43.0 lib/xsys/model/sale_point.rb
xsys-0.42.0 lib/xsys/model/sale_point.rb
xsys-0.41.0 lib/xsys/model/sale_point.rb
xsys-0.40.0 lib/xsys/model/sale_point.rb
xsys-0.39.0 lib/xsys/model/sale_point.rb
xsys-0.38.0 lib/xsys/model/sale_point.rb
xsys-0.37.0 lib/xsys/model/sale_point.rb
xsys-0.36.0 lib/xsys/model/sale_point.rb