Sha256: 629896b2c4a5b5637506317140c72155e1eca03aacc7a437077549e067a662df

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require_relative 'response/error'

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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