Sha256: 31b84631bf5ca89cea04902df63c3d104e8561b8dd206b1cef2b2f2e757a33b4

Contents?: true

Size: 211 Bytes

Versions: 8

Compression:

Stored size: 211 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lightspeed_restaurant-0.3.0 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.2.0 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.1.5 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.1.4 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.1.3 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.1.2 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.1.1 lib/lightspeed_restaurant/operations/destroy.rb
lightspeed_restaurant-0.1.0 lib/lightspeed_restaurant/operations/destroy.rb