Module: DataBindings::Adapters::Params::Convert

Includes:
ConverterHelper
Defined in:
lib/data_bindings/adapters/params.rb

Instance Method Summary collapse

Methods included from ConverterHelper

included

Instance Method Details

#force_convert_to_paramsString

Creates a String repsentation of a Ruby Hash or Array.

Parameters:

  • generator (Generator)

    The generator that invokes this constructor

  • name (Symbol)

    The name of the binding used on this object

  • obj (Array, Hash)

    The object to be represented in JSON

Returns:

  • (String)

    The JSON representation of this object



60
61
62
# File 'lib/data_bindings/adapters/params.rb', line 60

def force_convert_to_params
  build_nested_query(to_hash)
end