Constructs a QueryBuilder instance for a collection using the arguments provided.

 @param [String] name the name of the collection
 @param [Hash] additional_parameters the additional parameters
 @param [Array] args the arguments to use for query
974178
def build_collection_query_object(name, additional_parameters, *args)
    root = "/#{name.to_s}"
    if args.empty?
      #nothing to add
    elsif args.size == 1
      if args.first.to_s =~ /\d+/
        id_metadata = find_id_metadata(name.to_s)
        root << build_id_path(args.first, id_metadata)
      else
        root << "(#{args.first})"
      end
    else
      root << "(#{args.join(',')})"
    end
    QueryBuilder.new(root, additional_parameters)
  end
68645
def call_method_with_optional_parameters(object, method_name, parameters)
        if object.respond_to?(method_name)
          if object.method(method_name).arity == -1
            object.send(method_name, parameters)
          else
            object.send(method_name)
          end
        end
      end
10795
def method_missing(name, *args)
      if self[0].respond_to?(name)
        self.inject(QueryResult.new) do |memo, node|
          ret = node.send(name, *args)
          memo << ret if ret
          memo
        end
      else
        super
      end
    end
148967
def _get_required_param(self, param_name):
    
    value = self.request.get(param_name)
    if not value:
      raise errors.NotEnoughArgumentsError(param_name + " not specified")
    return value
955084
protected QueryExprMeta arguments(QueryExprMeta meta) {
        if (this.arguments == null) this.arguments = Lists.newArrayList();
        this.arguments.add(Val.of(meta));
        return this;
    }
1007007
public RestRequestBuilder<B, R> addQueryParam( String name, Collection<?> values ) {
        if ( null != values ) {
            List<Object> allValues = getQueryParams( name );
            allValues.addAll( values );
        }
        return this;
    }
648925
private static boolean hasParameter(
		final String args[],
		final String name) {
		for (int i = 0; i < args.length; i++) {
			if (args[i].equals(name)) {
				return true;
			} // end if
		} // end for

		return false;
	}
1152952
def additional_params
      @additional_params ||= if session_scope?
        if oauth2_session?
          {application_key: application_key}
        else
          {application_key: application_key, session_key: options[:session_key]}
        end
      else
        {application_key: application_key}
      end
    end
442667
def add_parameter(self, param_name, description=None, default=0, unit=None):
        

        if description is None:
            description = "Parameter called {}".format(param_name)

        if unit is None:
            unit = "-"
        
        name_check = lambda x: x['name'] == param_name
        name_check_list = list(filter(name_check, self.ext_params))
        if len(name_check_list) == 0:
            self.ext_params.append({'name': param_name, 'description': description, 'default': default, 'unit': unit})
        else:
            print('{} already exists - choose a different name'.format(param_name))
543902
public QueryBuilder call(String method_name, Object ... items) throws Exception {
        return map(null, method_name, items);
    }
1149972
public void addParamQuery(String name, String value) {
        addParam(name, value, NameValuePair.TYPE_QUERY_STRING);
    }
423839
protected static void appendNameAndParameters(StringBuilder sb, String name, List<Expression> parameters) {
        sb.append(name);
        sb.append("(");
        boolean first = true;
        for (Expression expr : parameters) {
            if (!first) {
                sb.append(", ");
            }
            first = false;
            sb.append(expr);
        }
        sb.append(")");
    }
1089570
public URIBuilder queryParam(String name, String value) {
		parameters.add(name, value);
		return this;
	}
942480
private static String getParameter(
		final String args[],
		final String name) {
		for (int i = 0; i < args.length; i++) {
			if (args[i].equals(name)) {
				if ((i + 1) < args.length) {
					return args[i + 1];
				} // end if

				break;
			} // end if
		} // end for

		return null;
	}
406672
def select(*args)
      case args[0]
      when nil
        raise ArgumentError, "Not enough arguments"
      when :first
        args.shift
        @connection.select_hash_first(*args)
      when :all
        args.shift
        @connection.select_hash_all(*args)
      else
        @connection.select_hash_all(*args)
      end
    end
832391
def param?(name)
      _param = name.to_s =~ /^params./ ? name.to_s : 'params.' + name.to_s
      begin
        val = eval("self.#{_param}")
      rescue
        nil
      else
        val
      end
    end
1068099
public Query addParameter(String name, final Collection<?> values) {
        if(values == null) {
            throw new NullPointerException("Array parameter cannot be null");
        }

        return addParameter(name, values.toArray());
    }