Class: LightspeedRestaurantClient::PaymentType

Inherits:
Base
  • Object
show all
Extended by:
Operations::Create, Operations::List
Defined in:
lib/lightspeed_restaurant/payment_type.rb

Class Method Summary collapse

Methods included from Operations::Create

create

Methods included from Operations::List

list

Methods inherited from Base

#attributes, #initialize, #to_json

Constructor Details

This class inherits a constructor from LightspeedRestaurantClient::Base

Class Method Details

.default_resource_pathObject



16
17
18
# File 'lib/lightspeed_restaurant/payment_type.rb', line 16

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

.list_resource_pathObject



20
21
22
# File 'lib/lightspeed_restaurant/payment_type.rb', line 20

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

.resource_nameObject



12
13
14
# File 'lib/lightspeed_restaurant/payment_type.rb', line 12

def self.resource_name
  'PaymentType'
end