Sha256: 08225a526edc2c3603e0b8730718ba336e4d54faf695835282c496d47bae8693

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module InsalesApi
  class Category < Base
    extend Resource::WithUpdatedSince
    class << self
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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