Class: InsalesApi::Collect

Inherits:
Base
  • Object
show all
Defined in:
lib/insales_api/collect.rb

Class Method Summary collapse

Methods inherited from Base

configure, dump_config, for_account, restore_config

Methods included from Resource::Countable

#count

Methods included from Resource::Paginated

#find_each, #find_in_batches

Class Method Details

.group_create(product_ids, collection_ids) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/insales_api/collect.rb', line 4

def group_create(product_ids, collection_ids)
  data = {
    collection_ids: Array(collection_ids),
    product_ids: Array(product_ids),
  }
  post(:group_create, {}, format.encode(data, root: :group_create))
end