Open struan opened 8 years ago
We want to add methods that only makes sense for memberships of legislature (e.g legislature) but currently all memberships are the same class.
legislature
Add a LegislatureMembership subclass to Membership.
LegislatureMembership
Membership
The JSON.memberships returns legislature membership objects, not Memberships
JSON.memberships
We need to agree on a way to return subclasses from a collection which is work happening as part or #67.
Also, need to determine how to distinguish between the types of membership.
Problem
We want to add methods that only makes sense for memberships of legislature (e.g
legislature
) but currently all memberships are the same class.Proposed Solution
Add a
LegislatureMembership
subclass toMembership
.Acceptance Criteria
The
JSON.memberships
returns legislature membership objects, notMembership
sNot Required
Prerequisites
We need to agree on a way to return subclasses from a collection which is work happening as part or #67.
Related Issues