chronogolf/lightspeed_restaurant

View on GitHub
lib/lightspeed_restaurant/product_group_product.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'lightspeed_restaurant/base'
require 'lightspeed_restaurant/operations/create'

module LightspeedRestaurantClient
  class ProductGroupProduct < LightspeedRestaurantClient::Base
    include Operations::Create

    def initialize(product_group_id)
      super
    end

    def self.resource_name
      'Product'
    end

    def default_resource_path
      "#{ProductGroup.default_resource_path}/#{product_group_id}/#{self.class.resource_name.downcase}"
    end
  end
end