everypolitician / everypolitician-popolo

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

Add Party and Legislature subclasses to Organization #110

Open struan opened 8 years ago

struan commented 8 years ago

Problem

We want to add methods that only make sense for Legislatures (e.g. to get a list of all the terms), but currently both Parties and Legislatures are both plain Organizations.

Proposed Solution

Make separate subclasses for Parties and Legislatures.

Acceptance Criteria

We can add a JSON.parties method which returns Party objects.

Not Required

Prerequisites

Related Issues

67