lib/ruby-lokalise-api/client.rb
def format_params(params, object_key)
      return params unless object_key

      params = [params] unless params.is_a?(Array)
      {object_key => params}
    end
# Converts `params` to hash with arrays under the `object_key` key.
# Used in bulk operations
#
# @return [Hash]
Converts `params` to hash with arrays under the `object_key` key.
Used in bulk operations
Converts ` params ` to hash with arrays under the ` object_key ` key . Used in bulk operations
def format_params(params, object_key)
      return params unless object_key
      params = [params] unless params.is_a?(Array)
      {object_key => params}
    end
def format_params ( params , object_key ) return params unless object_key params = [ params ] unless params . is_a? ( Array ) { object_key => params } end
Converts `params` to hash with arrays under the `object_key` key.
Converts ` params ` to hash with arrays under the ` object_key ` key .
None
Hash
params
object_key