Sha256: a35c7e22d2248e1932ad44315b748fd17bef1b58cc08aa738fa150af2dc5e60b

Contents?: true

Size: 509 Bytes

Versions: 6

Compression:

Stored size: 509 Bytes

Contents

# 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lightspeed_restaurant-3.3.3 lib/lightspeed_restaurant/product_group_product.rb
lightspeed_restaurant-3.3.2 lib/lightspeed_restaurant/product_group_product.rb
lightspeed_restaurant-3.3.1 lib/lightspeed_restaurant/product_group_product.rb
lightspeed_restaurant-3.3.0 lib/lightspeed_restaurant/product_group_product.rb
lightspeed_restaurant-3.2.0 lib/lightspeed_restaurant/product_group_product.rb
lightspeed_restaurant-3.1.0 lib/lightspeed_restaurant/product_group_product.rb