Sha256: fce1751adcfd33466555564c6fab559277c16b8f70426a92bae2ebc213f79752

Contents?: true

Size: 350 Bytes

Versions: 84

Compression:

Stored size: 350 Bytes

Contents

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

84 entries across 84 versions & 1 rubygems

Version Path
xsys-0.8.0 lib/xsys/model/product_category.rb
xsys-0.7.0 lib/xsys/model/product_category.rb
xsys-0.6.5 lib/xsys/model/product_category.rb
xsys-0.6.4 lib/xsys/model/product_category.rb
xsys-0.6.3 lib/xsys/model/product_category.rb
xsys-0.6.2 lib/xsys/model/product_category.rb
xsys-0.6.1 lib/xsys/model/product_category.rb
xsys-0.6.0 lib/xsys/model/product_category.rb
xsys-0.5.2 lib/xsys/model/product_category.rb
xsys-0.5.1 lib/xsys/model/product_category.rb
xsys-0.5.0 lib/xsys/model/product_category.rb
xsys-0.4.1 lib/xsys/model/product_category.rb
xsys-0.4.0 lib/xsys/model/product_category.rb
xsys-0.3.2 lib/xsys/model/product_category.rb
xsys-0.3.1 lib/xsys/model/product_category.rb
xsys-0.3.0 lib/xsys/model/product_category.rb
xsys-0.2.15 lib/xsys/model/product_category.rb
xsys-0.2.14 lib/xsys/model/product_category.rb
xsys-0.2.13 lib/xsys/model/product_category.rb
xsys-0.2.12 lib/xsys/model/product_category.rb