class RediSearch::Client::Response

Public Instance Methods

nil?() click to toggle source
# File lib/redi_search/client/response.rb, line 15
def nil?
  response.nil?
end
ok?() click to toggle source
# 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

Private Instance Methods

array_ok?() click to toggle source
# File lib/redi_search/client/response.rb, line 21
def array_ok?
  response.all? do |pipeline_response|
    Response.new(pipeline_response).ok?
  end
end
response() click to toggle source
# File lib/redi_search/client/response.rb, line 27
def response
  __getobj__
end