Sha256: cdcb6a68ac7fdb5e241411cf1b9564bb054d0d53d9941ab79d6e936982c0ae5a
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 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/embedded_entity_metadata' require_relative 'resources/embedded_entity_metadata_indexed' require_relative 'resources/custom_entity_metadata' require_relative 'resources/subresource' # Простые ресурсы, которые создаются автоматически %w{Goods GoodFolders Uoms PriceType Countries Features CustomEntities CustomerOrders Warehouses Companies Consignments MyCompanies}.each do |klass_name| const_set klass_name, Class.new( Base ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.2.1 | lib/moysklad/resources.rb |
moysklad-0.2.0 | lib/moysklad/resources.rb |