Sha256: 9a4e6c7d426ea504b5725437b406b971a7a55631ec2d12ba7850a7bfa99de848

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module LightspeedRestaurantClient
  module Operations
    module Destroy
      def destroy(configuration = nil)
        JSON.parse(LightspeedRestaurantClient.delete(self.class.default_resource_path + "/#{id}", {}, configuration))
        self
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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