class ProxES::Request::Stats

Attributes

index[R]

Public Instance Methods

endpoint() click to toggle source
# File lib/proxes/request/stats.rb, line 18
def endpoint
  '_stats'
end
index=(idx) click to toggle source
# File lib/proxes/request/stats.rb, line 11
def index=(idx)
  @index = idx
  self.path_info = '/' + [index, endpoint].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/stats.rb, line 34
def indices
  @index || []
end
indices?() click to toggle source
# File lib/proxes/request/stats.rb, line 30
def indices?
  true
end
parse() click to toggle source
# File lib/proxes/request/stats.rb, line 22
def parse
  @index ||= check_part(path_parts[0])
end
stats() click to toggle source
# File lib/proxes/request/stats.rb, line 26
def stats
  @stats ||= check_part(path_parts[2])
end