Sha256: 8ed0a19b756961779d9aa1390cd5cca40320d4fee7f3ed792ca8653a4f584f98

Contents?: true

Size: 319 Bytes

Versions: 4

Compression:

Stored size: 319 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

4 entries across 4 versions & 1 rubygems

Version Path
mistral_client-1.2.1 lib/mistral_client/mixins/deletable.rb
mistral_client-1.2.0 lib/mistral_client/mixins/deletable.rb
mistral_client-1.1.0 lib/mistral_client/mixins/deletable.rb
mistral_client-1.0.0 lib/mistral_client/mixins/deletable.rb