Sha256: 35f9f2c270140fb30a9e7dca096724a63f98f4eb15e7473cdce6503ef5318e25

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

module MistralClient
  module Mixins
    module Deletable
      def delete!
        resp = @server.delete("#{self.class::PATH}/#{id}")
        return true if resp.code == 204

        raise MistralClient::MistralError,
              "Could not perform the requested operation:\n#{resp.body}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mistral_client-3.0.0 lib/mistral_client/mixins/deletable.rb
mistral_client-2.0.0 lib/mistral_client/mixins/deletable.rb
mistral_client-1.3.0 lib/mistral_client/mixins/deletable.rb