WinRb/Viewpoint — pull request #170 by clarif (2014-09-11 13:05:29+00:00)
Title: handle getting events for multiple users in a single request

Hi,

Thanks for this very useful gem.

There is a little issue regarding user availability. The `get_user_availability` method takes as parameter an array of email addresses. That's needed when one wants to get availabilities of multiple users through a single request to the Exchange server. But from my understanding, this method only returns availability for the first user in the array.

This commit proposes a way to return availability for all users specified within the array. Regarding the result, since Exchange do no insert any user id within its response, availabilities are returned with a `user` value that contains the index of the user in the array passed as parameter.

It might probably be more efficient to parse directly the XML response from Exchange with Nokigiri (missing time to do so).

Thanks again for the library.
Fabrice.