lib/vkontakte_api/utils.rb
# A multiple version of `#flatten_argument`. It transforms a hash flattening each value and keeping the keys untouched.
# @param [Hash] arguments The arguments to flatten.
# @return [Hash] Flattened arguments.
A multiple version of `#flatten_argument`. It transforms a hash flattening each value and keeping the keys untouched.
A multiple version of ` #flatten_argument ` . It transforms a hash flattening each value and keeping the keys untouched .
def flatten_arguments(arguments)
        arguments.inject({}) do |flat_args, (arg_name, arg_value)|
          flat_args[arg_name] = flatten_argument(arg_value)
          flat_args
        end
      end
def flatten_arguments ( arguments ) arguments . inject ( { } ) do | flat_args , ( arg_name , arg_value ) | flat_args [ arg_name ] = flatten_argument ( arg_value ) flat_args end end
A multiple version of `#flatten_argument`.
A multiple version of ` #flatten_argument ` .
None
Hash
arguments
arguments The arguments to flatten.
arguments The arguments to flatten .