Module: Parliament::Decorators::HouseSeat
- Defined in:
- lib/parliament/decorators/house_seat.rb
Instance Method Summary collapse
Instance Method Details
#constituency ⇒ Object
8 9 10 |
# File 'lib/parliament/decorators/house_seat.rb', line 8 def constituency respond_to?(:houseSeatHasConstituencyGroup) ? houseSeatHasConstituencyGroup.first : nil end |
#house ⇒ Object
4 5 6 |
# File 'lib/parliament/decorators/house_seat.rb', line 4 def house respond_to?(:houseSeatHasHouse) ? houseSeatHasHouse.first : nil end |
#seat_incumbencies ⇒ Object
12 13 14 |
# File 'lib/parliament/decorators/house_seat.rb', line 12 def seat_incumbencies respond_to?(:houseSeatHasSeatIncumbency) ? houseSeatHasSeatIncumbency : [] end |