Class: Moysklad::Resources::Stock
- Inherits:
-
Base
- Object
- Base
- Moysklad::Resources::Stock
show all
- Defined in:
- lib/moysklad/resources/stock.rb
Constant Summary
Constants inherited
from Base
Base::PREFIX_PATH
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#create, #delete, #get, indexed, inherited, #initialize, #list, #metadata, type, #update
Methods included from Positions
#create_position, #create_position_path
Class Method Details
.entity_class ⇒ Object
20
21
22
|
# File 'lib/moysklad/resources/stock.rb', line 20
def self.entity_class
Moysklad::Entities::StockTO
end
|
.pluralized_type ⇒ Object
24
25
26
|
# File 'lib/moysklad/resources/stock.rb', line 24
def self.pluralized_type
:stock
end
|
Instance Method Details
#all ⇒ Object
8
9
10
|
# File 'lib/moysklad/resources/stock.rb', line 8
def all
list
end
|
#find ⇒ Object
12
13
14
|
# File 'lib/moysklad/resources/stock.rb', line 12
def find
raise 'no such method'
end
|
#list_path ⇒ Object
16
17
18
|
# File 'lib/moysklad/resources/stock.rb', line 16
def list_path
'exchange/rest/stock/xml'
end
|
#listWithConsignments(params = {}) ⇒ Object
4
5
6
|
# File 'lib/moysklad/resources/stock.rb', line 4
def listWithConsignments params={}
list params.merge(showConsignments: true)
end
|