Sha256: 91e31f23df8105fd76c9fbd6bf287483c682b32d010600c674feee6ee2cb88a9
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
require_relative '../../utils' module Gitlab module Triage module GraphqlQueries module QueryParamBuilders class BaseParamBuilder attr_reader :param_name, :param_contents, :with_quotes def initialize(param_name, param_contents, with_quotes: true) @param_name = param_name @param_contents = param_contents.to_s.strip @with_quotes = with_quotes end def build_param contents = with_quotes ? Utils.graphql_quote(param_contents) : param_contents ", #{param_name}: #{contents}" end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems