Class: MoySklad::Model::Warehouse
- Inherits:
-
Client::Base
- Object
- ActiveResource::Base
- Client::Base
- MoySklad::Model::Warehouse
- Defined in:
- lib/moy_sklad/model/warehouse.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Warehouse
constructor
A new instance of Warehouse.
- #items(mode = 'POSITIVE_ONLY') ⇒ Object
Methods inherited from Client::Base
#applicable?, collection_name, #create, #destroy, element_path, find, new_element_path, #save
Methods inherited from ActiveResource::Base
Constructor Details
#initialize(*args) ⇒ Warehouse
Returns a new instance of Warehouse.
3 4 5 6 |
# File 'lib/moy_sklad/model/warehouse.rb', line 3 def initialize(*args) super(*args) create_nested_collection(:slots) end |