Sha256: 71f5c4e176e2b6f8e9a62ea1e1be74a89de2ac802594f4fbb06c2db2efd85496
Contents?: true
Size: 548 Bytes
Versions: 7
Compression:
Stored size: 548 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
7 entries across 7 versions & 1 rubygems