Sha256: 3c6a45132c3ea96ade3fbd3213f44ee592bda501ea00cff3fe08149a825d93ae
Contents?: true
Size: 832 Bytes
Versions: 11
Compression:
Stored size: 832 Bytes
Contents
module Moysklad::Resources mattr_accessor :resources def self.register_resource resource_class self.resources ||= [] self.resources << resource_class end %w{ positions base load_all assortments custom_entities custom_entity_metadata embedded_entity_metadata where_filter indexed_cache indexed embedded_entity_metadata_indexed products stock subresource }.each do |m| require_relative "resources/#{m}" end # Простые ресурсы, которые создаются автоматически %w{Productfolders Uoms PriceType Countries Variants Counterparty Organization Service Bundle CustomerOrders Store Currency Consignments Group}.each do |klass_name| const_set klass_name, Class.new( Base ) end end
Version data entries
11 entries across 11 versions & 1 rubygems