riboseinc / digicert

Ruby bindings for the Digicert Services API
https://www.digicert.com/services/v2/documentation
MIT License
8 stars 10 forks source link

Add `.to_query` helper for nested params #119

Closed abunashir closed 7 years ago

abunashir commented 7 years ago

The default params builder does not support nested params building right out of the box, but Digicert requires us to provide filters as nested params to work properly.

This commit adds a very simple Util helper that will work pretty much same as URI.encode_www_form but with support for nested attributes. There are lots of other use cases we could've handle but for now this should do the job.

Inspiration: https://git.io/v97EV