Sha256: 392a2bb64dfa9a38cfe90a86ccf75e4f9f95fb9a26cd4606c3e8c2d4bf53f93d
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
module Moysklad::Resources class Stock < Base def listWithConsignments params={} list params.merge(showConsignments: true) end def find raise 'no such method' end def list_path 'exchange/rest/stock/xml' end def self.entity_class Moysklad::Entities::StockTO 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.1.2 | lib/moysklad/resources/stock.rb |