Sha256: 482a86d2e394b837f823f0afb798d1b144e271b531ab34d9fd901ab38444a3ff
Contents?: true
Size: 577 Bytes
Versions: 9
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true require 'rack' require 'proxes/request' module ProxES class Request class Stats < Request attr_reader :index def index=(idx) @index = idx self.path_info = '/' + [index, endpoint] .map { |v| v.is_a?(Array) ? v.join(',') : v } .select { |v| !v.nil? && v != '' }.join('/') end def endpoint '_stats' end def parse @index ||= check_part(path_parts[0]) end def indices? true end end end end
Version data entries
9 entries across 9 versions & 1 rubygems