rootstrap/best_buy_ruby

View on GitHub
lib/best_buy/categories.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'best_buy'

module BestBuy
  class Categories < BaseAPI
    CATEGORIES_API = '/v1/categories'

    protected

    def model_class
      Category
    end

    def collection_name
      :categories
    end

    def api_url
      CATEGORIES_API
    end
  end
end