Class: LightspeedRestaurantClient::ProductGroupProduct

Inherits:
Base
  • Object
show all
Includes:
Operations::Create
Defined in:
lib/lightspeed_restaurant/product_group_product.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Operations::Create

#create

Methods inherited from Base

#attributes, #to_json

Constructor Details

#initialize(product_group_id) ⇒ ProductGroupProduct

Returns a new instance of ProductGroupProduct.



10
11
12
# File 'lib/lightspeed_restaurant/product_group_product.rb', line 10

def initialize(product_group_id)
  super
end

Class Method Details

.resource_nameObject



14
15
16
# File 'lib/lightspeed_restaurant/product_group_product.rb', line 14

def self.resource_name
  'Product'
end

Instance Method Details

#default_resource_pathObject



18
19
20
# File 'lib/lightspeed_restaurant/product_group_product.rb', line 18

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