Sha256: 67bed00527f28a05aee2527d3d7a44e2f0f4e6409d06f0d27f4c1f1a3943534d

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

require 'lightspeed_restaurant/base'
require 'lightspeed_restaurant/operations/list'
require 'lightspeed_restaurant/operations/create'

module LightspeedRestaurantClient
  class CustomerCreditChange < LightspeedRestaurantClient::Base
    include Operations::List
    include Operations::Create

    def initialize(customer_id)
      super
    end

    def self.resource_name
      'CreditChange'
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lightspeed_restaurant-1.1.2 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-1.1.1 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-1.1.0 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-1.0.0 lib/lightspeed_restaurant/customer_credit_change.rb