Class: InsalesApi::Category
- Extended by:
- Resource::WithUpdatedSince
- Defined in:
- lib/insales_api/category.rb
Class Method Summary collapse
Methods included from Resource::WithUpdatedSince
find_in_batches, find_updated_since
Methods inherited from Base
configure, dump_config, for_account, restore_config
Methods included from Resource::Countable
Methods included from Resource::Paginated
Class Method Details
.set_products_category(new_category_id, product_ids) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/insales_api/category.rb', line 5 def set_products_category(new_category_id, product_ids) data = { id: new_category_id, product_ids: Array(product_ids), } put(:set_products_category, {}, format.encode(data, root: :new_category)) end |