everypolitician / everypolitician-popolo

Ruby gem for interacting with EveryPolitician data for a legislature
MIT License
7 stars 4 forks source link

of_class should return a collection and not an array #116

Closed struan closed 8 years ago

struan commented 8 years ago

Problem

The of_class method returns an array at the moment instead of a collection which means that where etc do not work on it.

Proposed Solution

of_class should return a collection.

Acceptance Criteria

popolo.elections.where works.

Not Required

Prerequisites

Related Issues

This is required for https://github.com/everypolitician/everypolitician/issues/529