Sha256: b84fb945b5f4d0e753f5b866cf25acfe287dd3ce71793d51888ebfa8f7ce5c24

Contents?: true

Size: 519 Bytes

Versions: 4

Compression:

Stored size: 519 Bytes

Contents

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

module LightspeedRestaurant
  class CustomerCreditChange < LightspeedRestaurant::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-0.3.0 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-0.2.0 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-0.1.5 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-0.1.4 lib/lightspeed_restaurant/customer_credit_change.rb