lib/parliament/decorators/incumbency.rb in parliament-ruby-0.5.6 vs lib/parliament/decorators/incumbency.rb in parliament-ruby-0.5.7

- old
+ new

@@ -20,8 +20,16 @@ end def contact_points respond_to?(:incumbencyHasContactPoint) ? incumbencyHasContactPoint : [] end + + def seat + respond_to?(:seatIncumbencyHasHouseSeat) ? seatIncumbencyHasHouseSeat.first : nil + end + + def house + respond_to?(:houseIncumbencyHasHouse) ? houseIncumbencyHasHouse.first : nil + end end end end