Sha256: 8ab90e403d267bb7becbe0bff6aa1ef12c84db3d2a75d5a400242fafe0650226

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

module LightspeedRestaurantClient
  module Operations
    module Destroy
      def destroy
        JSON.parse(LightspeedRestaurantClient.delete(self.class.resource_path + "/#{id}"))
        self
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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