Sha256: ded546720889869d6d87703b21baf5c5230d06ba6cf8985e97933b2bb9c243af
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 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 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.1.2 | lib/moysklad/resources.rb |
moysklad-0.1.1 | lib/moysklad/resources.rb |