Sha256: c7b5adb3ae7c6a53d2d299d1b89da3258ba0dc43853e4232e220073c4df95ddd

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

module Xsys
  module Model
    class PriceList
      def self.attr_list
        [: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

10 entries across 10 versions & 1 rubygems

Version Path
xsys-0.2.7 lib/xsys/model/price_list.rb
xsys-0.2.6 lib/xsys/model/price_list.rb
xsys-0.2.5 lib/xsys/model/price_list.rb
xsys-0.2.4 lib/xsys/model/price_list.rb
xsys-0.2.3 lib/xsys/model/price_list.rb
xsys-0.2.2 lib/xsys/model/price_list.rb
xsys-0.2.1 lib/xsys/model/price_list.rb
xsys-0.2.0 lib/xsys/model/price_list.rb
xsys-0.1.1 lib/xsys/model/price_list.rb
xsys-0.1.0 lib/xsys/model/price_list.rb