Sha256: e04a7025b16443b12191c202106b7cede7972b46758ef61622347df4eeb61831

Contents?: true

Size: 388 Bytes

Versions: 13

Compression:

Stored size: 388 Bytes

Contents

module Xsys
  module Model
    class Stock
      def self.attr_list
        [:shop_code, :quantity, :shop_has_exhibition, :shop_service]
      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

13 entries across 13 versions & 1 rubygems

Version Path
xsys-0.10.4 lib/xsys/model/stock.rb
xsys-0.10.3 lib/xsys/model/stock.rb
xsys-0.10.2 lib/xsys/model/stock.rb
xsys-0.10.1 lib/xsys/model/stock.rb
xsys-0.10.0 lib/xsys/model/stock.rb
xsys-0.9.2 lib/xsys/model/stock.rb
xsys-0.9.1 lib/xsys/model/stock.rb
xsys-0.9.0 lib/xsys/model/stock.rb
xsys-0.8.7 lib/xsys/model/stock.rb
xsys-0.8.6 lib/xsys/model/stock.rb
xsys-0.8.5 lib/xsys/model/stock.rb
xsys-0.8.4 lib/xsys/model/stock.rb
xsys-0.8.3 lib/xsys/model/stock.rb