Class: LightspeedRestaurantClient::CustomerEstablishmentOrder

Inherits:
Base
  • Object
show all
Includes:
Operations::Create
Defined in:
lib/lightspeed_restaurant/customer_establishment_order.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(customer_id) ⇒ CustomerEstablishmentOrder

Returns a new instance of CustomerEstablishmentOrder.



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

def initialize(customer_id)
  super
end

Class Method Details

.resource_nameObject



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

def self.resource_name
  'EstablishmentOrder'
end

Instance Method Details

#default_resource_pathObject



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

def default_resource_path
  "/rest/onlineordering/customer/#{customer_id}/#{self.class.resource_name.downcase}"
end