class Esearch::Command::Exist

Command to check existance of objects

Constants

EXPECTED_STATI

Public Instance Methods

result() click to toggle source

Return result

@return [true]

if object exists

@return [false]

otherwise

@api private

# File lib/esearch/command/exist.rb, line 20
def result
  assert_success
  response.status == 200
end

Private Instance Methods

request() click to toggle source

Return request

@return [Request]

@api private

# File lib/esearch/command/exist.rb, line 33
def request
  Request.head(context_path)
end