Sha256: 2e8c17de0a1db2675fa88e42e19a153a8d8bdac1af14c692191885ac26529c55

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

module InsalesApi
  class Collect < Base
    class << self
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
insales_api-0.2.0 lib/insales_api/collect.rb