class ProxES::Request::Cat

Attributes

index[R]
type[R]

Public Instance Methods

endpoint() click to toggle source
# File lib/proxes/request/cat.rb, line 18
def endpoint
  '_cat'
end
index=(idx) click to toggle source
# File lib/proxes/request/cat.rb, line 11
def index=(idx)
  @index = idx
  self.path_info = '/' + [endpoint, type, index].compact
                                                .map { |v| v.is_a?(Array) ? v.join(',') : v }
                                                .select { |v| !v.nil? && v != '' }.join('/')
end
indices() click to toggle source
# File lib/proxes/request/cat.rb, line 33
def indices
  @index || []
end
indices?() click to toggle source
# File lib/proxes/request/cat.rb, line 27
def indices?
  return false if type.nil?

  %w[shards indices segments count recovery].include? type.first
end
parse() click to toggle source
# File lib/proxes/request/cat.rb, line 22
def parse
  @type  ||= check_part(path_parts[1])
  @index ||= check_part(path_parts[2])
end