Sha256: 7847c9599c00467ac597acd113f27c78acb5af16d865778d4239b351beeea682

Contents?: true

Size: 529 Bytes

Versions: 3

Compression:

Stored size: 529 Bytes

Contents

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 resource_path
      "#{Customer.resource_path}/#{customer_id}/#{self.class.resource_name.downcase}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lightspeed_restaurant-1.1.2 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-1.1.1 lib/lightspeed_restaurant/customer_loyalty_card.rb
lightspeed_restaurant-1.1.0 lib/lightspeed_restaurant/customer_loyalty_card.rb