module Parliament module Decorators module Party def name respond_to?(:partyName) ? partyName : '' end def party_memberships respond_to?(:partyHasPartyMembership) ? partyHasPartyMembership : [] end def member_count respond_to?(:count) ? count.to_i : nil end end end end