Sha256: 1b848d0afb0adda43efdb66121372b2ec84a776ce854d70eb4cceedfdc066345

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require_relative 'response/error'

module Momento
  # A response from deleting a key.
  class DeleteResponse < Response
    # Was the key deleted?
    # @return [Boolean]
    def success?
      false
    end

    # @private
    class Success < DeleteResponse
      def success?
        true
      end
    end

    # @private
    class Error < DeleteResponse
      include Momento::Response::Error
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
momento-0.2.0 lib/momento/delete_response.rb