Sha256: 4fc3a61714aadae62206d00fefca970b298e53446f1083278e053ed6e5a8adac
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
# frozen_string_literal: true require 'proxes/request' require 'proxes/policies/request/stats_policy' module ProxES class Request class Stats < Request attr_reader :index 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 def endpoint '_stats' end def parse @index ||= check_part(path_parts[0]) end def stats @stats ||= check_part(path_parts[2]) end def indices? true end def indices @index || [] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proxes-0.10.1 | lib/proxes/request/stats.rb |