Sha256: 2c2cd682a031154d9c9107295062c3dada27accdac5762a74ac4b8938f5e108c

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moysklad-0.1.1 lib/moysklad/resources/stock.rb
moysklad-0.0.2 lib/moysklad/resources/stock.rb