Method: Elasticsearch::API::Utils#process_params
- Defined in:
- lib/elasticsearch/api/utils.rb
#process_params(arguments) ⇒ Object
132 133 134 135 |
# File 'lib/elasticsearch/api/utils.rb', line 132 def process_params(arguments) arguments = Hash[arguments] unless arguments.is_a?(Hash) Hash[arguments.map { |k, v| v.is_a?(Array) ? [k, __listify(v, { escape: false })] : [k, v] }] # Listify Arrays end |