Sha256: 5ebecf8cb8efcbf471b54418a8e16cec2ab35a4d155427a06a8d46577108f4dd

Contents?: true

Size: 576 Bytes

Versions: 6

Compression:

Stored size: 576 Bytes

Contents

# frozen_string_literal: true

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

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

    def initialize(customer_id)
      super
    end

    def self.resource_name
      'LoyaltyCard'
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lightspeed_restaurant-3.3.3 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-3.3.2 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-3.3.1 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-3.3.0 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-3.2.0 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-3.1.0 lib/lightspeed_restaurant/customer_loyalty_card.rb