Sha256: cc787a586504ab9b50161860864a845bf02895357f9f7f227ed5007dfce64857
Contents?: true
Size: 798 Bytes
Versions: 3
Compression:
Stored size: 798 Bytes
Contents
module Moysklad::Resources mattr_accessor :resources extend ActiveSupport::Autoload def self.register_resource resource_class self.resources ||= [] self.resources << resource_class end require_relative 'resources/base' require_relative 'resources/indexed' require_relative 'resources/stock' require_relative 'resources/metadata' require_relative 'resources/custom_entity_metadata' require_relative 'resources/metadata_indexed' require_relative 'resources/subresource' # Простые ресурсы, которые создаются автоматически %w{Goods GoodFolders Uoms Countries Features CustomEntities CustomerOrders Warehouses Companies Consignments MyCompanies}.each do |klass_name| const_set klass_name, Class.new( Base ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.1.5 | lib/moysklad/resources.rb |
moysklad-0.1.4 | lib/moysklad/resources.rb |
moysklad-0.1.3 | lib/moysklad/resources.rb |