lib/vote_smart/district.rb in netroots-ruby-votesmart-0.2.1 vs lib/vote_smart/district.rb in netroots-ruby-votesmart-0.2.2
- old
+ new
@@ -2,9 +2,11 @@
class District < Common
attr_accessor :id, :name, :office_id, :state_id
+ attr_accessor :office
+
set_attribute_map "districtId" => :id, "name" => :name, "officeId" => :office_id, "stateId" => :state_id
def number
return unless name