I'm working with an API which accepts duplicate params as an array. For example:
/search.json?people=joe&people=jane
I would have expected them to handle this array differently (comma separated, or with square brackets), but I'm stuck with having to comply with their decision. However, the problem I'm running into is that Ruby doesn't accept duplicate hash keys:
MyClient.get('/search.json', people: 'joe', people: 'jane')
What are my options? How can I handle this requirement without hard-coding the URL?