Sha256: 0db75af184c5c4617355141d1529f0d97e2efe2eac0bfdcea78ee0a9aeb9fb70

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

module InsalesApi
  class Category < Base
    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.1 lib/insales_api/category.rb
insales_api-0.1.0 lib/insales_api/category.rb