lib/moysklad/resources/stock.rb in moysklad-0.1.1 vs lib/moysklad/resources/stock.rb in moysklad-0.1.2
- old
+ new
@@ -18,7 +18,15 @@
end
def self.pluralized_type
:stock
end
+
+ private
+
+ def parse_collection content
+ items = Moysklad::Entities::StockTO.parse content
+ Moysklad::Entities::Page.new items, items.count, 0, items.count
+ end
+
end
end