chronogolf/lightspeed_restaurant

View on GitHub
lib/lightspeed_restaurant/inventory_product.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'lightspeed_restaurant/base'
require 'lightspeed_restaurant/operations/find'

module LightspeedRestaurantClient
  class InventoryProduct < LightspeedRestaurantClient::Base
    extend Operations::Find

    def self.resource_name
      'Inventory/Product'
    end

    def self.default_resource_path
      "/rest/#{resource_name.downcase}"
    end
  end
end