Class: Bigcommerce::ProductRule

Inherits:
Resource
  • Object
show all
Defined in:
lib/bigcommerce/resources/products/product_rule.rb

Class Method Summary collapse

Class Method Details

.count(product_id, params = {}) ⇒ Object


23
24
25
# File 'lib/bigcommerce/resources/products/product_rule.rb', line 23

def self.count(product_id, params = {})
  get "products/#{product_id}/rules/count", params
end

.count_all(params = {}) ⇒ Object


27
28
29
# File 'lib/bigcommerce/resources/products/product_rule.rb', line 27

def self.count_all(params = {})
  get 'products/rules/count', params
end