Class: Momento::SortedSetFetchResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/momento/response/sorted_set/sorted_set_fetch_response.rb

Overview

A response containing the elements retrieved from a sorted set.

Instance Method Summary collapse

Methods inherited from Response

#error, #error?

Instance Method Details

#hit?Boolean

The sorted set exists and any matching elements were fetched.

Returns:

  • (Boolean)


9
10
11
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 9

def hit?
  false
end

#miss?Boolean

The sorted set does not exist.

Returns:

  • (Boolean)


15
16
17
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 15

def miss?
  false
end

#to_sString

Displays the response and the value, if any. A long value will be truncated.

Returns:

  • (String)


# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 33

#value_bytes_elements(Array[{ value: String, score: Float }] | nil)

The fetched values as ASCII_8BIT Strings and their scores.

Returns:

  • ((Array[{ value: String, score: Float }] | nil))

    the ASCII_8BIT elements and their scores



29
30
31
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 29

def value_bytes_elements
  nil
end

#value_string_elements(Array[{ value: String, score: Float }] | nil) Also known as: value

The fetched values as UTF-8 Strings and their scores.

Returns:

  • ((Array[{ value: String, score: Float }] | nil))

    the UTF-8 elements and their scores



21
22
23
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 21

def value_string_elements
  nil
end