Sha256: 76b40cfacab5d2e0e3abfde07419bb122742c72977493ad4c084261da69f3734

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 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

2 entries across 2 versions & 1 rubygems

Version Path
insales_api-0.1.3 lib/insales_api/category.rb
insales_api-0.1.2 lib/insales_api/category.rb