Sha256: 6628baa925ec075b6c8b271f3c1d755bdb438264160a580d4241bf6eb9651813

Contents?: true

Size: 436 Bytes

Versions: 84

Compression:

Stored size: 436 Bytes

Contents

module Xsys
  module Model
    class ProductProvider
      def self.attr_list
        [:id, :name, :address, :zip_code, :phone,
         :cuit, :email, :province, :locality, :vat_kind]
      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.25.0 lib/xsys/model/product_provider.rb
xsys-0.24.0 lib/xsys/model/product_provider.rb
xsys-0.23.0 lib/xsys/model/product_provider.rb
xsys-0.22.0 lib/xsys/model/product_provider.rb
xsys-0.21.0 lib/xsys/model/product_provider.rb
xsys-0.20.0 lib/xsys/model/product_provider.rb
xsys-0.19.2 lib/xsys/model/product_provider.rb
xsys-0.19.1 lib/xsys/model/product_provider.rb
xsys-0.19.0 lib/xsys/model/product_provider.rb
xsys-0.18 lib/xsys/model/product_provider.rb
xsys-0.17.2 lib/xsys/model/product_provider.rb
xsys-0.17.1 lib/xsys/model/product_provider.rb
xsys-0.17.0 lib/xsys/model/product_provider.rb
xsys-0.16.1 lib/xsys/model/product_provider.rb
xsys-0.16.0 lib/xsys/model/product_provider.rb
xsys-0.15.4 lib/xsys/model/product_provider.rb
xsys-0.15.3 lib/xsys/model/product_provider.rb
xsys-0.15.2 lib/xsys/model/product_provider.rb
xsys-0.15.1 lib/xsys/model/product_provider.rb
xsys-0.15.0 lib/xsys/model/product_provider.rb