bigcommerce/bigcommerce-api-ruby

View on GitHub
lib/bigcommerce/resources/products/brand.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# Brand
# Brand facets for identifying and categorising products according
# to their manufacturer or company metonym.
# https://developer.bigcommerce.com/api/stores/v2/brands

module Bigcommerce
  class Brand < Resource
    include Bigcommerce::ResourceActions.new uri: 'brands/%d'

    property :id
    property :name
    property :count
    property :page_title
    property :meta_keywords
    property :meta_description
    property :image_file
    property :search_keywords

    def self.count(params = {})
      get 'brands/count', params
    end
  end
end