Sha256: ac78bc1d95d0c241710a3085c2f09bf4a5aa525642f8b26f657a0c3a325e0f17
Contents?: true
Size: 777 Bytes
Versions: 27
Compression:
Stored size: 777 Bytes
Contents
require_relative 'base_query_param_builder' module Gitlab module Triage module APIQueryBuilders class MultiQueryParamBuilder < BaseQueryParamBuilder attr_reader :separator def initialize(param_name, param_contents, separator, allowed_values: nil) @separator = separator super(param_name, Array(param_contents), allowed_values: allowed_values) end def param_content param_contents.map(&:strip).join(separator) end private def validate_allowed_values! param_contents.each do |param| ParamsValidator.new([{ name: param_name, type: String, values: allowed_values }], { param_name => param }).validate! end end end end end end
Version data entries
27 entries across 27 versions & 2 rubygems