Class: LightspeedRestaurantClient::CustomerEstablishmentOrder
- Includes:
- Operations::Create
- Defined in:
- lib/lightspeed_restaurant/customer_establishment_order.rb
Class Method Summary collapse
Instance Method Summary collapse
- #default_resource_path ⇒ Object
-
#initialize(customer_id) ⇒ CustomerEstablishmentOrder
constructor
A new instance of CustomerEstablishmentOrder.
Methods included from Operations::Create
Methods inherited from Base
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_name ⇒ Object
14 15 16 |
# File 'lib/lightspeed_restaurant/customer_establishment_order.rb', line 14 def self.resource_name 'EstablishmentOrder' end |
Instance Method Details
#default_resource_path ⇒ Object
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 |