alphagov/gds-api-adapters — pull request #83 by JordanHatch (2013-10-16 14:01:57+00:00)
Title: Add method to `GdsApi::NeedApi` to request a list of needs

The `needs` method makes a request to the Need API for a list of needs, returning a `ListResponse` instance.

This also includes a change to `ListResponse` to delegate the `to_ary` method to the `results` sub-object. This makes it easier to use the response in rendering a partial with the `collection` option.