lib/moysklad/resources.rb in moysklad-0.2.1 vs lib/moysklad/resources.rb in moysklad-0.3.0
- old
+ new
@@ -8,17 +8,19 @@
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'
+ require_relative 'resources/custom_entities'
+ require_relative 'resources/assortments'
# Простые ресурсы, которые создаются автоматически
- %w{Goods GoodFolders Uoms PriceType Countries Features CustomEntities CustomerOrders Warehouses Companies Consignments MyCompanies}.each do |klass_name|
+ %w{Products Productfolders Uoms PriceType Countries Variants
+ Counterparty
+ Organization
+ CustomerOrders Store
+ Currency
+ Workflows
+ Companies Consignments MyCompanies}.each do |klass_name|
const_set klass_name, Class.new( Base )
end
-
end