Class: RediSearch::Client::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RediSearch::Client::Response
- Defined in:
- lib/redi_search/client/response.rb
Instance Method Summary collapse
Instance Method Details
#nil? ⇒ Boolean
15 16 17 |
# File 'lib/redi_search/client/response.rb', line 15 def nil? response.nil? end |
#ok? ⇒ Boolean
6 7 8 9 10 11 12 13 |
# File 'lib/redi_search/client/response.rb', line 6 def ok? case response when String then response == "OK" when Integer then response >= 1 when Array then array_ok? else response end end |