Module: FinchAPI::Type::RequestParameters::Converter Private

Defined in:
lib/finch-api/type/request_parameters.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#dump_request(params) ⇒ Array(Object, Hash{Symbol=>Object})

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • params (Object)

Returns:

  • (Array(Object, Hash{Symbol=>Object}))


27
28
29
30
31
32
33
34
# File 'lib/finch-api/type/request_parameters.rb', line 27

def dump_request(params)
  case (dumped = dump(params))
  in Hash
    [dumped.except(:request_options), dumped[:request_options]]
  else
    [dumped, nil]
  end
end