Class: LightspeedRestaurantClient::CustomerCreditChange

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Operations::Create

#create

Methods included from Operations::List

#list

Methods inherited from Base

#attributes, #to_json

Constructor Details

#initialize(customer_id) ⇒ CustomerCreditChange

Returns a new instance of CustomerCreditChange.



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

def initialize(customer_id)
  super
end

Class Method Details

.resource_nameObject



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

def self.resource_name
  'CreditChange'
end

Instance Method Details

#default_resource_pathObject



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

def default_resource_path
  "#{Customer.default_resource_path}/#{customer_id}/#{self.class.resource_name.downcase}"
end