Class: Momento::ListCachesResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/momento/response/control/list_caches_response.rb

Overview

A response from listing the caches.

Instance Method Summary collapse

Methods inherited from Response

#error, #error?

Instance Method Details

#cache_namesArray?

The names of the caches.

Returns:

  • (Array, nil)


15
16
17
# File 'lib/momento/response/control/list_caches_response.rb', line 15

def cache_names
  nil
end

#success?Boolean

Did it get a list of caches?

Returns:

  • (Boolean)


9
10
11
# File 'lib/momento/response/control/list_caches_response.rb', line 9

def success?
  false
end

#to_sString

Displays the response and the list of cache names. The list of cache names will be truncated.

Returns:

  • (String)


# File 'lib/momento/response/control/list_caches_response.rb', line 19